文章目录
idea.keymapBasic InfoMac keyboard symbolIntelliJ IDEA keymap for macRemember these ShortcutsGerneralEditingUsage SearchNavigationSearch / ReplaceLive TemplatesVSC / Local HistoryRefactoringDebuggingCompile and RunScreen Capture
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
GerneralEditingUsage SearchNavigationSearch / ReplaceLive TemplatesVSC / Local HistoryRefactoringDebuggingCompile and Run
Remember these Shortcuts
ctrl shift space ::= Smart çode^ompletionDouble shift ::= Search everywherecmd Enter ::= Show intention actions and quick-fixescmd N, ctrl Enter ::= Generate codecmd p ::= Parameter infooption cmd ↑ ::= Extend selectionoption cmd ↓ ::= Shrink selectioncmd E ::= Recent files popupshift F6 ::= Rename
Gerneral
cmd0…cmd9 ::= Open correspondingjtool windowcmd S ::= Save allcmd option Y ::= Synchronizectrl cmd F ::= Toggle full screen modecmd shift F12 ::= Toggle maximizing editoroption shift F ::= Add to Favoritesoption shift I ::= Inspect current file with current profilectl ` ::= Quick switch current schemecmd , ::= Open Settings dialogcmd ; ::= Open Project Structure dialogcmd 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 statementcmd P ::= Parameter info (within method call arguments)ctrl J ::= Quick documentation lookupshift F1 ::= External Doccmd + mouse over code ::= Brief Infocmd F1 ::= Show descriptions of error or warning at^caretcmd N, ctrl enter , ctrl N ::= Generate code… (Getters, Setters, Constructors, hashCode/equals.jtoString)ctrl O ::= Override methodsctrl I ::= Implement methodscmd option T ::= Surround with… (if…else, try…catch, for, synchronized, etc.)cmd / ::= Comment/uncomment with line commentcmd option / ::= Comment/uncomment with block commentoption ↑ ::= Select successively increasing code blocksoption ↓ ::= Decrease current selection to previous statectrl shift Q ::= Context infooption enter ::= Show intention actions and quick-fixescmd option L ::= Reformat codectrl option O ::= Optimize importsctrl option I ::= Auto-indent line(s)Tab | shift Tab ::= Indent/unindentselected linescmd X ::= Cut current line or selected block to clipboardcmd C ::= Copy current line or selected block to clipboardcmd V ::= Paste from clipboardcmd shift V ::= Paste from recent buffers…cmd D ::= Duplicate currentjine or selected blockmcd delete ::= Delete line at caretctrl shift J ::= Smartline joincmd Eenter ::= Smart line splitshift Eneter ::= Start newjinecmd shift U ::= Toggle case for word at caret or selected blockmcd shift ] / cmd shift [ ::= Select till code block end/startoption delete / option shift delete ::= Delete to word end/startcmd + / cmd - ::= Expand/collapse code blockcmd shift + / cmd shift - ::= Expand all/Collapse allcmd W ::= Close active editor tab
Usage Search
option F7 / cmd F7 ::= Find usages / Find usages in filecmd shift F7 ::= Highlight usages in filecmd option F7 ::= Show usages
Navigation
cmd O ::= Go to classcmd shift O ::= Go to filecmd option O ::= Go to symbolctrl ← / ctrl → ::= Go to next/previous editor tabF12 ::= Go back to previous tool windowEsc ::= Go to editor (from tool window)shift ESC ::= Hide active or last active windowcmd shift F4 ::= Close active run/messages/find/… tabcmd L ::= Go to linecmd E ::= Recent files popupcmd option ←/→ ::= Navigate back/forwardcmd shift delete ::= Navigate to last edit locationoption F1 ::= Select current file or symbol in any viewcmd B, cmd Click ::= Go to declarationcmd option B ::= Go to implementation(s)option Space, cmd Y ::= Open quick definition lookupctrl shift B ::= Go to type declarationcmd U ::= Go to super-method/super-classctrl ↑/↓ ::= Go to previous/next methodcmd ]/[ ::= Move to code block end/startcmd F12 ::= File structure popupctrl H ::= Type hierarchycmd shift H ::= Method hierarchyctrl option H ::= Call hierarchyF2/shift F2 ::= Next/previous highlighted errorF4 / cmd ↓ ::= Edit source / View sourceoption Home ::= Show navigation barF3 ::= Toggle bookmarkoption F3 ::= Toggle bookmark with mnemonicctrl0 … ctrl9 ::= Go to numbered bookmarkcmd F3 ::= Show bookmarks
Search / Replace
Double shift ::= Search everywherecmd F ::= Findcmd G ::= Find nextcmd shift G ::= Find previouscmd R ::= Replacecmd shift F ::= Find in pathcmd shift R ::= Replace in pathcmd shift S ::= Search structurally (Ultimate Edition only)cmd shift M ::= Replace structurally (Ultimate Edition only)
Live Templates
cmd option J ::= Surround with Live Templatecmd J ::= Insert Live Template
VSC / Local History
cmd k ::= Commit project to VCScmd T ::= Update project from VCSoption shift C ::= View recent changesctrl V ::= ‘VCS’ quick popup
Refactoring
F5 ::= CopyF6 ::= Movecmd delete ::= Safe Deleteshift F6 ::= Renamecmd F6 ::= Change Signaturecmd option N ::= Inlinecmd option M ::= Extract Methodcmd option V ::= Extract Variablecmd option F ::= Extract Fieldcmd option C ::= Extract Constantcmd option P ::= Extract Parameter
Debugging
F8 ::= Step overF7 ::= Step intoshift F7 ::= Smart step intoshift F8 ::= Step outoption F9 ::= Run to cursoroption F8 ::= Evaluate expressioncmd option R ::= Resume programcmd F8 ::= Toggle breakpointcmd shift F8 ::= View breakpoints
Compile and Run
cmd F9 ::= Make project (compile modifed and dependent)cmd shift F9 ::= Compile selected file, package or modulectrl option R ::= Select configuration and runctrl option D ::= Select configuration and debugctrl R ::= Runctrl D ::= Debugctrl shift R, ctrl shift D ::= Run context configuration from editor
Screen Capture