【conventional】
- Ctrl+Shift+Enter, statement completes
- "!", negative completion, press "!" key when entering an expression
- Ctrl+E, recent file
- Ctrl+Shift+E, recently changed files
- Shift+Click to close the file
- Ctrl+[ OR ], you can run to the beginning and end of braces
- Ctrl+F12, you can display the structure of the current file
- Ctrl+F7, you can query the reference of the current element in the current file, and then press F3 to select
- Ctrl+N, you can quickly open the class
- Ctrl+Shift+N, you can quickly open files
- Alt+Q, you can see the declaration of the current method
- Ctrl+P, can display parameter information
- Ctrl+Shift+Insert, you can select the clipboard content and insert
- Alt+Insert, can generate constructor/Getter/Setter, etc.
- Ctrl+Alt+V, you can introduce variables. For example: new String(); automatically imports variable definitions
- Ctrl+Alt+T, you can wrap the code in a block, for example: try/catch
- Ctrl+Enter, import package, autocorrect
- Ctrl+Alt+L, format code
- Ctrl+Alt+I, automatically indents the selected code, this function can also work when editing JSP files
- Ctrl+Alt+O, optimize imported classes and packages
- Ctrl+R, replace text
- Ctrl+F, find text
- Ctrl+Shift+Space, auto-completion code
- Ctrl+space, code prompt (conflicts with system input method shortcut keys)
- Ctrl+Shift+Alt+N, find a method or variable in a class
- Alt+Shift+C, recent changes
- Alt+Shift+Up/Down, move up/down a line
- Shift+F6, Refactor - Rename
- Ctrl+X, delete line
- Ctrl+D, copy line
- Ctrl+/ or Ctrl+Shift+/, comment (// or /**/)
- Ctrl+J, automatic code (eg: serr)
- Ctrl+Alt+J, Surround with Dynamic Template
- Ctrl+H, display class structure diagram (class inheritance hierarchy)
- Ctrl+Q, show the annotation document
- Alt+F1, find the location of the code
- Alt+1, quickly open or hide the project panel
- Ctrl+Alt+left/right, return to the last browsed position
- Alt+left/right, switch code view
- Alt+Up/Down, quickly move positioning between methods
- Ctrl+Shift+Up/Down, move statement up/down
- F2 or Shift+F2, highlight errors or warnings to quickly locate
- Tab, after entering the code label, press Tab to generate the code
- Ctrl+Shift+F7, highlight all the text, press Esc to highlight disappear
- Alt+F3, find the same text one by one and highlight it
- Ctrl+Up/Down, go to the first or last line in the cursor
- Ctrl+B/Ctrl+Click, quickly open the class or method at the cursor (jump to the definition)
- Ctrl+Alt+B, jump to method implementation
- Ctrl+Shift+Backspace, jump to the last edited place
- Ctrl+O, override method
- Ctrl+Alt+Space, class name autocomplete
- Ctrl+Alt+Up/Down, quickly jump to search results
- Ctrl+Shift+J, combine two lines
- Alt+F8, calculate variable value
- Ctrl+Shift+V to insert the most recently used clipboard content selection into the text
- Ctrl+Alt+Shift+V, simple paste
- Shift+Esc, not only moves the focus to the editor, but also hides the current (or last active) tool window
- F12, move focus from editor to recently used tool window
- Shift+F1, the browser to open the Java documentation for the class or method used at the editor cursor character
- Ctrl+W, you can select a word, then a statement, then a line, then a function
- Ctrl+Shift+W, deselect the word under the cursor
- Alt+F7, find the location of a class, method or variable used in the entire project
- Ctrl+I, implementation method
- Ctrl+Shift+U, case conversion
- Ctrl+Y, delete the current line
- Shift+Enter, insert a new line down
- psvm/sout, main/System.out.println(); Ctrl+J, see more
- Ctrl+Shift+F, global search
- Ctrl+F, Find/Shift+F3, Find Up/F3, Find Down
- Ctrl+Shift+S, Advanced Search
- Ctrl+U, go to parent class
- Ctrl+Alt+S to open the settings dialog
- Alt+Shift+Inert,开启/关闭列选择模式
- Ctrl+Alt+Shift+S,打开当前项目/模块属性
- Ctrl+G,定位行
- Alt+Home,跳转到导航栏
- Ctrl+Enter,上插一行
- Ctrl+Backspace,按单词删除
- Ctrl+"+/-",当前方法展开、折叠
- Ctrl+Shift+"+/-",全部展开、折叠
【调试部分、编译】
- Ctrl+F2,停止
【重构】
- Ctrl+Alt+Shift+T,弹出重构菜单
- Shift+F6,重命名
- F6,移动
- F5,复制
- Alt+Delete,安全删除
- Ctrl+Alt+N,内联
【查找】
- Ctrl+F,查找
- Ctrl+R,替换
- F3,查找下一个
- Shift+F3,查找上一个
- Ctrl+Shift+F,在路径中查找
- Ctrl+Shift+R,在路径中替换
- Ctrl+Shift+S,搜索结构
- Ctrl+Shift+M,替换结构
- Alt+F7,查找用法
- Ctrl+Alt+F7,显示用法
- Ctrl+F7,在文件中查找用法
- Ctrl+Shift+F7,在文件中高亮显示用法
【VCS】
- Alt+~,VCS 操作菜单
- Ctrl+K,提交更改
- Ctrl+T,更新项目
- Ctrl+Alt+Shift+D,显示变化
PS:
初次使用 Intellij IDEA,在这之前一直使用 Eclipse Or MyEclipse。
此快捷键是在使用过程中通过IDE、官方文档中挖掘出来的,请尊重作者的劳动成果。
转载请标明出处。如有错误,请微博反馈,谢谢!