Disable drag&drop in solution explorer

∥☆過路亽.° 提交于 2019-12-03 10:29:58

问题


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.

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.


回答1:


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




回答2:


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

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

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




回答3:


I looks like they have finally attempted to enable this functionality in 2017 Community (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.



来源:https://stackoverflow.com/questions/336394/disable-dragdrop-in-solution-explorer

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!