禁用解决方案资源管理器中的拖放操作

时间:2021-05-19 00:08:03

Is there a way to disable the drag&drop functionality for Solution Explorer? Why would you ask? I'm using an wacom pen tablet for quite some years and I love it. But when you use it in solution explorer in combination with a source control like TFS or AnkhSvn it's a disaster when you accidentally move a file into an different directory.

有没有办法禁用解决方案资源管理器的拖放功能?你为什么要问?我使用wacom数位板已经有好几年了,我喜欢它。但是,当您在解决方案资源管理器中使用它与TFS或AnkhSvn等源代码控件结合使用时,如果您不小心将文件移动到其他目录中,则会发生灾难。

I currently set visual studio to prompt when files are wanted to check out, but when a solution/project file already is checked out then the above problems still exist.

我目前设置visual studio来提示何时要检出文件,但是当检出解决方案/项目文件时,上述问题仍然存在。

3 个解决方案

#1


19  

There is a plugin to Visual Studio 2010 that will prompt you drag & drop files in Solution Explorer: http://visualstudiogallery.msdn.microsoft.com/en-us/d491911d-97f3-4cf6-87b0-6a2882120acf

Visual Studio 2010有一个插件,它会提示您在解决方案资源管理器中拖放文件:http://visualstudiogallery.msdn.microsoft.com/en-us/d491911d-97f3-4cf6-87b0-6a2882120acf

#2


9  

Sadly, turning off the drag and drop function in the Sollution Explorer is not possible.

遗憾的是,无法在Sollution Explorer中关闭拖放功能。

Edit: The third post (by a Microsoft employee) in this Microsoft Forum thread confirms this.

编辑:此Microsoft论坛帖子中的第三篇文章(由Microsoft员工提供)确认了这一点。

Edit: Judging from this entry on Microsoft connect it also looks like this is something they have no intention of improving.

编辑:从微软连接上的这个条目来看,它看起来像是他们无意改进的东西。

#3


2  

I looks like they have finally attempted to enable this functionality in 2017 Community (15.7.5)

我看起来他们最终试图在2017社区中启用此功能(15.7.5)

Tools -> Options -> Projects and Solutions -> General -> "Prompt before moving files to a new location"

工具 - >选项 - >项目和解决方案 - >常规 - >“在将文件移动到新位置之前提示”

I say attempted because I have still had occasions where this setting hasn't displayed the dialog box, so as of V15.7.5 it is a little buggy still.

我说尝试过,因为我仍然有过这种设置没有显示对话框的情况,所以从V15.7.5开始它仍然是一个小小的车。

#1


19  

There is a plugin to Visual Studio 2010 that will prompt you drag & drop files in Solution Explorer: http://visualstudiogallery.msdn.microsoft.com/en-us/d491911d-97f3-4cf6-87b0-6a2882120acf

Visual Studio 2010有一个插件,它会提示您在解决方案资源管理器中拖放文件:http://visualstudiogallery.msdn.microsoft.com/en-us/d491911d-97f3-4cf6-87b0-6a2882120acf

#2


9  

Sadly, turning off the drag and drop function in the Sollution Explorer is not possible.

遗憾的是,无法在Sollution Explorer中关闭拖放功能。

Edit: The third post (by a Microsoft employee) in this Microsoft Forum thread confirms this.

编辑:此Microsoft论坛帖子中的第三篇文章(由Microsoft员工提供)确认了这一点。

Edit: Judging from this entry on Microsoft connect it also looks like this is something they have no intention of improving.

编辑:从微软连接上的这个条目来看,它看起来像是他们无意改进的东西。

#3


2  

I looks like they have finally attempted to enable this functionality in 2017 Community (15.7.5)

我看起来他们最终试图在2017社区中启用此功能(15.7.5)

Tools -> Options -> Projects and Solutions -> General -> "Prompt before moving files to a new location"

工具 - >选项 - >项目和解决方案 - >常规 - >“在将文件移动到新位置之前提示”

I say attempted because I have still had occasions where this setting hasn't displayed the dialog box, so as of V15.7.5 it is a little buggy still.

我说尝试过,因为我仍然有过这种设置没有显示对话框的情况,所以从V15.7.5开始它仍然是一个小小的车。