简体   繁体   English

在 IntelliJ Idea IDE 中禁用单击和拖动剪切和粘贴

[英]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.在我的 IntelliJ Idea 13.1.2 IDE 中,我不断遇到通过我的笔记本电脑触摸板单击和拖动进行选择的情况。 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. IntelliJ 的帮助讨论了如何使用单击和拖动剪切,但没有说明如何禁用它。 Does anyone know how to disable cut and paste through click and drag in the IntelliJ IDE?有谁知道如何通过在 IntelliJ IDE 中单击和拖动来禁用剪切和粘贴?

I found it in SettingsEditorGeneral .我在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.这似乎也禁用了文件的拖放移动。

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 :在 WebStorm 2020.1(可能在其他 Jetbrains IDE 中)中,相关选项“使用拖放移动代码片段”位于“首选项” >“编辑器” >“常规”中

在此处输入图片说明

Unchecking the checkbox does the trick without unwanted side effects such as also disabling the drag-and-drop operations for files etc.取消选中该复选框不会产生不必要的副作用,例如还禁用文件的拖放操作等。

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.拖放文件的 ALT 保护是一个好主意,因为我每天不小心拖放文件。 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.我已联系 Intellij 支持为我们提供了一个设置,我们可以在编辑器拖放中禁用该设置。 I think that is a stupid feature in the first place...我认为这首先是一个愚蠢的功能......

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM