Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio Code: How to Disable Drag to Edit Text?

Tags:

In VS Code how can I disable Drag to Edit Text?

When editing in Visual Studio Code, often when I attempt to select an area of text, I accidentally select a few characters. When I drag, the characters are moved. Seems I'm inept at using a mouse.

How can I disable drag to edit? I searched online and in keyboard shortcuts. No luck.

like image 794
Sparky1 Avatar asked Jan 28 '18 18:01

Sparky1


People also ask

How do I turn off auto format in Visual Studio?

Enable/Disable Format On SaveOpen up VSCode Command Palette by pressing Ctrl + Shift + P. Search and select Open Settings (UI). Just start typing and it will auto-fill. Once there's a match, you can hit enter immediately, or manually click on the right option.


2 Answers

// Controls if the editor should allow to move selections via drag and drop.

"editor.dragAndDrop": false,

like image 171
Mark Avatar answered Oct 22 '22 09:10

Mark


In Visual Studio Code if you want to do in the app just go to:

File -> Preferences -> Settings -> type "Drag and drop" in the search bar

It should be the first option.

like image 44
Rafael Furquim Avatar answered Oct 22 '22 09:10

Rafael Furquim