简体   繁体   English

如何在IntelliJ IDEA 2017.1中禁用鼠标中键粘贴?

[英]How to disable middle mouse click paste in IntelliJ IDEA 2017.1?

I have recently updated from version 2016.2 to 2017.1. 我最近从版本2016.2更新到2017.1。 Not counting this issue, it looks like all settings and plugins were imported from previous version successfully. 不计算此问题,看起来所有设置和插件都是从先前版本成功导入的。

My question is, how to disable this behavior under Linux? 我的问题是,如何在Linux下禁用此行为? I have already bound functionality to my middle button in IDEA, but it is being overwritten by that stupid second clipboard paste which I don't even use. 我已经将功能绑定到IDEA中的中间按钮,但是它被我甚至不使用的那个愚蠢的第二个剪贴板粘贴覆盖了。

Only related thing I found in settings was Paste on middle mouse click in Terminal . 我在设置中找到的只有相关的东西是在终端 中鼠标点击粘贴 It did not change anything in the normal main editor pane. 它没有改变普通主编辑器窗格中的任何内容。

Edit: Few months later and it is still not fixed in current IDEA version. 编辑:几个月后,它仍然没有修复当前的IDEA版本。 I am paying for the IDE and this feels like being ripped off. 我正在支付IDE,这感觉就像被扯掉了。

This worked for me: Go to Settings -> Keymap and select 'Default' from the 'Keymaps:' dropdown in the top left - Or at least select away from 'Default for XWin Copy'. 这对我有用:转到设置 - >键盘映射,然后从左上角的“键盘映射:”下拉列表中选择“默认” - 或者至少选择“默认为XWin复制”。 Then remove 'Button2 Click' from 'Paste from X clipboard.' 然后从“从X剪贴板粘贴”中删除“Button2 Click”。

This is a bit of a pain because it resets all your keymaps, but at least it fixes middle click. 这有点痛苦,因为它会重置所有的键盘图,但至少它会修复中间点击。

It's a known issue, please follow for updates: 这是一个已知问题,请关注更新:

  1. Go to Settings -> Keymap -> Editor Actions. 转到设置 - >键盘映射 - >编辑器操作。
  2. Right click 'Paste from X clipboard'. 右键单击“从X剪贴板粘贴”。
  3. Select 'Remove Button2 Click'. 选择“删除Button2单击”。
  4. Apply. 应用。

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

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