Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

My Visual Studio 2017 is awfully liberal in its interpretation of what mouse gestures count as 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 am trying to move the file, so I get the popup below.

Is there any way to tell VS not to see a move attempt unless I move the mouse pointer a bit further?

popup

like image 593
William Jockusch Avatar asked Apr 24 '17 20:04

William Jockusch


People also ask

What does it mean when it says destination folder is the same as source folder?

This means that if you create a folder at the Destination that has the same name as the Source, and the Source folder is not an email folder, then no data will be transferred between the Source and the Destination.

How do I move a Visual Studio project to another folder?

In Visual Studio, click Tools > Options. Expand Projects and Solutions and click Locations. The Projects location field defines the default location for storing new projects. You can change this path if you are using a different working folder.


1 Answers

In Windows 10, by default, if you move an item by at least 4 pixels, and drop it it, it will excecute a drag and drop operation. You can modify this threshold to your needs.

The function for changing the drag threshold is SystemParametersInfo.

SystemParametersInfo writes the values into they registry key [HKEY_CURRENT_USER\Control Panel\Desktop] as DragHeight and DragWidth.

You can modify the values there.

enter image description here

like image 182
Postlagerkarte Avatar answered Oct 02 '22 00:10

Postlagerkarte