Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable click and drag cut and paste in IntelliJ Idea IDE

In my IntelliJ Idea 13.1.2 IDE I keep running into situations where I'm selecting on a click and drag via my laptop touch pad. I keep accidentally clicking and dragging text and cutting lines. I've searched the options and settings panels for the words click and drag but I don't see a way to turn this feature off. IntelliJ's help talks about how to use click and drag cutting but doesn't say how to disable it. Does anyone know how to disable cut and paste through click and drag in the IntelliJ IDE?

like image 355
Jason D Avatar asked Apr 29 '14 16:04

Jason D


People also ask

How do I enable editing in IntelliJ?

In the Settings/Preferences dialog ( Ctrl+Alt+S ), go to Editor | General | Editor Tabs. In the Tab closing policy section, adjust the settings according to your preferences and click OK.

How do I copy and paste in IntelliJ?

Set the caret anywhere in the line to copy the whole line, or make a selection to copy. Press Ctrl+C or choose Edit | Copy from the main menu .


2 Answers

I found it in SettingsEditorGeneral.

Under the Mouse heading. The option is called "Enable Drag'n'Drop functionality in editor".

This also seems to disable drag and drop moving of files though.

like image 112
Jason D Avatar answered Sep 19 '22 06:09

Jason D


In WebStorm 2020.1 (and presumably in other Jetbrains IDEs), the related option 'Move code fragments with drag-and-drop' is in Preferences > Editor > General:

enter image description here

Unchecking the checkbox does the trick without unwanted side effects such as also disabling the drag-and-drop operations for files etc.

like image 41
Clokman Avatar answered Sep 21 '22 06:09

Clokman