为什么复制拖放不能在vscode中工作

时间:2017-04-10 06:28:27

标签: typescript visual-studio-code vscode-settings

我更新了我的vscode,他们在2017年3月的发行说明中提到了这一点。

Copy with drag and drop - Choose whether to copy or cut when you drag and drop in the editor.

拖放所选文本时,为什么我的vscode不会复制或剪切。我是否需要安装任何扩展程序才能工作。

4 个答案:

答案 0 :(得分:0)

发行说明也说 -

On macOS, press and hold the Option key while you drag and drop. Press the Ctrl key on Windows and press the Alt key on Linux.

请参阅here

答案 1 :(得分:0)

"editor.dragAndDrop":true

中添加settings.json

答案 2 :(得分:0)

我正在使用Windows 10,我也遇到了同样的问题。

因为Visual Studio Code有两种安装程序:User InstallerSystem Installer,所以User Installer的特权较少,但是User Installer放在首位在official download page中。

如果您是管理员帐户,则这两个安装程序中的任何一个都可以。

但是,如果您不是管理员帐户,并且安装了User Installer,则会出现“拖放操作不起作用”的问题。

因此,解决方案是卸载VS代码的User Installer,然后重新安装VS代码的System Installer。它对我来说很完美,也许对您也有帮助。

答案 3 :(得分:0)

这是一个已知问题,请参考: https://github.com/microsoft/vscode/issues/93599

顺便说一句,您可以使用右键菜单中的“下载”

相关问题