安装插件:IntelliJ IDEA Keybindings 或者设置–>keymaps选择IntelliJ IDEA Keybindings 安装插件后的快捷键映射:
Linux, WindowsmacOSFeatureSupportedctrl+spacectrl+spaceBasic code completion (the name of any class, method or variable)✅ctrl+shift+spacectrl+shift+spaceSmart code completion (filters the list of methods and variables by expected type)N/Actrl+shift+entercmd+shift+enterComplete statement✅ctrl+pcmd+pParameter info (within method call arguments)✅ctrl+qctrl+jQuick documentation lookup✅ctrl+f1shift+f1External DocN/Actrl+mouseovercmd+mouseoverBrief InfoN/Actrl+f1cmd+f1Show descriptions of error or warning at caret✅alt+insertcmd+nGenerate code… (Getters, Setters, Constructors, hashCode/equals, toString)✅ctrl+octrl+oOverride methodsN/Actrl+ictrl+iImplement methodsN/Actrl+alt+tcmd+alt+tSurround with… (if…else, try…catch, for, synchronized, etc.)N/Actrl+/cmd+/Comment/uncomment with line comment✅ctrl+numpad_dividecmd+numpad_divideComment/uncomment with line comment✅ctrl+alt+/cmd+alt+/Comment/uncomment with block comment✅ctrl+alt+numpad_dividecmd+alt+numpad_divideComment/uncomment with block comment✅ctrl+walt+upSelect successively increasing code blocks✅ctrl+shift+walt+downDecrease current selection to previous state✅alt+qctrl+shift+qContext infoN/Aalt+enteralt+enterShow intention actions and quick-fixes✅ctrl+alt+lcmd+alt+lReformat code✅ctrl+alt+lcmd+alt+lReformat selected code✅ctrl+alt+octrl+alt+oOptimize importsN/Actrl+alt+ictrl+alt+iAuto-indent line(s)N/A上表只列出部分映射,从上表可以看出有些在IDEA的快捷键在VSCode安装IDEA快捷键映射插件后任然不支持。不过大部分都是支持的。