Sparky1
Sparky1

Reputation: 3515

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

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.

Upvotes: 47

Views: 6801

Answers (3)

Rafael Furquim
Rafael Furquim

Reputation: 191

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.

Upvotes: 15

Richard
Richard

Reputation: 106

Just to complete the answer : in Visual Studio : Tools -> Options -> Text Editor -> General -> Drag and Drop text editing ( or directly enter "Drag and Drop" in the search bar of the Options window )

Upvotes: 9

Mark
Mark

Reputation: 182291

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

"editor.dragAndDrop": false,

Upvotes: 76

Related Questions