Intellij comment shortcut opens help tab on the Mac menu bar

瘦欲@ 提交于 2019-12-08 14:47:03

问题


When I use the Cmd + Shift + / keyboard shortcut to comment/uncomment a block of code, the Help tab on the menu bar in IntelliJ also opens.

Does anyone know how to prevent this shortcut from opening the Help menu tab in IntelliJ 16.1.2? I am using the Mac OS X 10.5+ shortcuts.


回答1:


Remove or replace the Cmd + Shift + / shortcut in your mac. Apple menu-> System Preferences-> Keyboard -> Shortcuts.




回答2:


I used this work around but it didn't fix the problem:

In IntelliJ, I went to Preferences -> Keymap and I searched for comment. It turns out that there are 3 different commands to comment/uncomment a block of code.

  1. Cmd + Shift + /
  2. Ctrl + Shift + /
  3. Cmd + Alt + /

My work around to prevent Cmd + Shift + / from opening the Help menu tab is to use one of the other keyboard shortcuts.

This doesn't answer my question fully so if anyone has any suggestion please let me know as I would prefer to use Cmd + Shift + /




回答3:


Steps:

  1. Remove or replace the Cmd + Shift + / shortcut in your Mac (as mentioned by @Bajal)
  2. Add new Intellij shortcut Alt + 7 for "Comment with Line Comment" (Preferences -> Keymap)



来源:https://stackoverflow.com/questions/38144396/intellij-comment-shortcut-opens-help-tab-on-the-mac-menu-bar

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!