Unable to move foo.cs. The destination folder is the same as the source folder.

My Visual Studio 2017 is terribly liberal in interpreting which mouse gestures are considered an attempt to move a file. Whenever I try to click on a file, it seems that if I move the mouse at all, even one pixel, VS thinks I'm trying to move the file, so I get a popup below.

Is there a way to tell VS not to see an attempt to move if I haven't moved the mouse a little further?

popup

+5
source share
1 answer

In Windows 10, by default, if you move an element at least 4 pixels and drop it, it will cancel the drag and drop operation. You can change this threshold to suit your needs.

Function to change the drag threshold SystemParametersInfo .

SystemParametersInfo writes values ​​to their registry key [HKEY_CURRENT_USER \ Control Panel \ Desktop] as DragHeight and DragWidth.

You can change the values ​​there.

enter image description here

+6
source

Source: https://habr.com/ru/post/1267107/


All Articles