Disable click and drag cut and paste in IntelliJ Idea IDE

前端 未结 3 492
感情败类
感情败类 2021-02-01 12:12

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 an

相关标签:
3条回答
  • 2021-02-01 12:20

    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.

    0 讨论(0)
  • 2021-02-01 12:29

    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:

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

    0 讨论(0)
  • 2021-02-01 12:34

    There is no way to disable Drag-n-drop highlighted text in the editor itself!!! ALT guard for drag-n-drop files is a good idea as I accidentally drag and drop files on daily basis. Kudos for discovering that I just enabled it.

    I have contacted Intellij support to give us a setting that we can disable in editor drag and drop. I think that is a stupid feature in the first place...

    0 讨论(0)
提交回复
热议问题