文章目录
idea.keymap
Basic Info
come from org of “IntelliJ IDEA” ::= IntelliJ IDEA (V-2019.2) for mac
Mac keyboard symbol
其符号说明, 参见mac.keyboard.symbols
IntelliJ IDEA keymap for mac
- Gerneral
- Editing
- Usage Search
- Navigation
- Search / Replace
- Live Templates
- VSC / Local History
- Refactoring
- Debugging
- Compile and Run
Remember these Shortcuts
- ctrl shift space ::= Smart çode^ompletion
- Double shift ::= Search everywhere
- cmd Enter ::= Show intention actions and quick-fixes
- cmd N, ctrl Enter ::= Generate code
- cmd p ::= Parameter info
- option cmd ↑ ::= Extend selection
- option cmd ↓ ::= Shrink selection
- cmd E ::= Recent files popup
- shift F6 ::= Rename
Gerneral
- cmd0…cmd9 ::= Open correspondingjtool window
- cmd S ::= Save all
- cmd option Y ::= Synchronize
- ctrl cmd F ::= Toggle full screen mode
- cmd shift F12 ::= Toggle maximizing editor
- option shift F ::= Add to Favorites
- option shift I ::= Inspect current file with current profile
- ctl ` ::= Quick switch current scheme
- cmd , ::= Open Settings dialog
- cmd ; ::= Open Project Structure dialog
- cmd shift A ::= Find Action; (A = action)
- ctl tab ::= Switch between tabs and tool window
Editing
- ctrl space ::= Basic code completion (the name of any class, method or variable)
- ctrl shift space ::= Smart code completion (filters the list of methods nd variables by expected type)
- cmd shift enter ::= Complete statement
- cmd P ::= Parameter info (within method call arguments)
- ctrl J ::= Quick documentation lookup
- shift F1 ::= External Doc
- cmd + mouse over code ::= Brief Info
- cmd F1 ::= Show descriptions of error or warning at^caret
- cmd N, ctrl enter , ctrl N ::= Generate code… (Getters, Setters, Constructors, hashCode/equals.jtoString)
- ctrl O ::= Override methods
- ctrl I ::= Implement methods
- cmd option T ::= Surround with… (if…else, try…catch, for, synchronized, etc.)
- cmd / ::= Comment/uncomment with line comment
- cmd option / ::= Comment/uncomment with block comment
- option ↑ ::= Select successively increasing code blocks
- option ↓ ::= Decrease current selection to previous state
- ctrl shift Q ::= Context info
- option enter ::= Show intention actions and quick-fixes
- cmd option L ::= Reformat code
- ctrl option O ::= Optimize imports
- ctrl option I ::= Auto-indent line(s)
- Tab | shift Tab ::= Indent/unindentselected lines
- cmd X ::= Cut current line or selected block to clipboard
- cmd C ::= Copy current line or selected block to clipboard
- cmd V ::= Paste from clipboard
- cmd shift V ::= Paste from recent buffers…
- cmd D ::= Duplicate currentjine or selected block
- mcd delete ::= Delete line at caret
- ctrl shift J ::= Smartline join
- cmd Eenter ::= Smart line split
- shift Eneter ::= Start newjine
- cmd shift U ::= Toggle case for word at caret or selected block
- mcd shift ] / cmd shift [ ::= Select till code block end/start
- option delete / option shift delete ::= Delete to word end/start
- cmd + / cmd - ::= Expand/collapse code block
- cmd shift + / cmd shift - ::= Expand all/Collapse all
- cmd W ::= Close active editor tab
Usage Search
- option F7 / cmd F7 ::= Find usages / Find usages in file
- cmd shift F7 ::= Highlight usages in file
- cmd option F7 ::= Show usages
Navigation
- cmd O ::= Go to class
- cmd shift O ::= Go to file
- cmd option O ::= Go to symbol
- ctrl ← / ctrl → ::= Go to next/previous editor tab
- F12 ::= Go back to previous tool window
- Esc ::= Go to editor (from tool window)
- shift ESC ::= Hide active or last active window
- cmd shift F4 ::= Close active run/messages/find/… tab
- cmd L ::= Go to line
- cmd E ::= Recent files popup
- cmd option ←/→ ::= Navigate back/forward
- cmd shift delete ::= Navigate to last edit location
- option F1 ::= Select current file or symbol in any view
- cmd B, cmd Click ::= Go to declaration
- cmd option B ::= Go to implementation(s)
- option Space, cmd Y ::= Open quick definition lookup
- ctrl shift B ::= Go to type declaration
- cmd U ::= Go to super-method/super-class
- ctrl ↑/↓ ::= Go to previous/next method
- cmd ]/[ ::= Move to code block end/start
- cmd F12 ::= File structure popup
- ctrl H ::= Type hierarchy
- cmd shift H ::= Method hierarchy
- ctrl option H ::= Call hierarchy
- F2/shift F2 ::= Next/previous highlighted error
- F4 / cmd ↓ ::= Edit source / View source
- option Home ::= Show navigation bar
- F3 ::= Toggle bookmark
- option F3 ::= Toggle bookmark with mnemonic
- ctrl0 … ctrl9 ::= Go to numbered bookmark
- cmd F3 ::= Show bookmarks
Search / Replace
- Double shift ::= Search everywhere
- cmd F ::= Find
- cmd G ::= Find next
- cmd shift G ::= Find previous
- cmd R ::= Replace
- cmd shift F ::= Find in path
- cmd shift R ::= Replace in path
- cmd shift S ::= Search structurally (Ultimate Edition only)
- cmd shift M ::= Replace structurally (Ultimate Edition only)
Live Templates
- cmd option J ::= Surround with Live Template
- cmd J ::= Insert Live Template
VSC / Local History
- cmd k ::= Commit project to VCS
- cmd T ::= Update project from VCS
- option shift C ::= View recent changes
- ctrl V ::= ‘VCS’ quick popup
Refactoring
- F5 ::= Copy
- F6 ::= Move
- cmd delete ::= Safe Delete
- shift F6 ::= Rename
- cmd F6 ::= Change Signature
- cmd option N ::= Inline
- cmd option M ::= Extract Method
- cmd option V ::= Extract Variable
- cmd option F ::= Extract Field
- cmd option C ::= Extract Constant
- cmd option P ::= Extract Parameter
Debugging
- F8 ::= Step over
- F7 ::= Step into
- shift F7 ::= Smart step into
- shift F8 ::= Step out
- option F9 ::= Run to cursor
- option F8 ::= Evaluate expression
- cmd option R ::= Resume program
- cmd F8 ::= Toggle breakpoint
- cmd shift F8 ::= View breakpoints
Compile and Run
- cmd F9 ::= Make project (compile modifed and dependent)
- cmd shift F9 ::= Compile selected file, package or module
- ctrl option R ::= Select configuration and run
- ctrl option D ::= Select configuration and debug
- ctrl R ::= Run
- ctrl D ::= Debug
- ctrl shift R, ctrl shift D ::= Run context configuration from editor