Tuesday, February 24, 2015

Intellij IDEA - Shortcuts Arcenal MAC OS

I noticed that in the most of cases it's more convenient to use the some Hot Key instead of Mouse (of course if u know such one for your mac):
* Verified with Intellij IDEA 14

* MAC OS Keymap Symbols meaning 
Navigation
Hot Key Action
⌃ ⌘ F Toggle Full Screen mode
⌘ ⇧ F12 Toggle Maximize editor
⌘ ⇧ A Find Action
⌘ , Settings
⌘ ; Project Settings
⌥ Tab Switch between Tabs
⌥⌂ or ⌥fn← Jump To Navigation Bar
⌘ 0...9 Open/Close to Corresponding Panel
Esc Go back to Editor
⇧ Esc Hide active or last active window
⌃ ←/→ Navigate via Opened Tabs
⌘ F4 Close Active Editor Tab
⌘ N Find a Class
⌘ ⇧ N Find a Source file
⌘ E Recent Files
⌘ ⇧ E Recently Edited Files
⌃ ↓/↑ Jump To Next/Previous method declaration
F4 or ⌘⌥B Jump To Implementation
⌘ ⇧ I Highlight Implementation
⌘ F12 Highlight Available Methods
⌥ F7 Find Usages
⌘ ⌥ F7 Highlight Usages
⌘ ]/[ Jump to Code Block end/start
⌘ ⌥ ←/→ Jump To Back/Forward
⌘ ⇧ ⌫ Jump To Last edited place
⌘ ⌥ B Jump To Type declaration
⌘ U Go to super method
⌘ G Go to line
⌘F11 or ⌃F11 Toggle Bookmark
⌃ ⇧ 0...9 Toggle Numbered Bookmark
⌃ 0...9 Go to Numbered Bookmark
⇧ F11 Show Bookmarks
⌘ ⇧ T Create or Navigate to Test

Code Editing
Hot Key Action
⇧ Enter Start new line (jumps even from the middle on the current line)
⌘ D Duplicate current line or selected block
⌘ Y Delete current line
⌘ Enter Smart line split
⌃ ⇧ J Smart line join
⌘ ⇧ U Toggle Case for word or selected block
⌘ ⇧ ↑/↓ Move Block Up/Down
⌥ ⇧ ↑/↓ Move Line Up/Down
⌥ ⌫ Delete to word start
⌘ +/- Expand/collapse code block
⌘ / Comment/uncomment line
⌃ ⇧ / Comment/uncomment block
⌘ W Select word or code block incrementally
⌘ ⇧ W Decrease selection to previous state
Quick lookup
Hot Key Action
⌃ ⇧ Q Context info lookup
⌃ J Quick Documentation popup
⌘ P Method Parameters info
⌘ F12 Available Methods lookup
⌘ ⇧ I Implementation lookup
⌘ ⌥ F7 Usages lookup
⌘ E Recent Files lookup
⌘ ⇧ E Recently Edited Files lookup
⌘ J Insert Live Template lookup
⌘ Tab Switch Tabs popup
⌃ V VCS quick popup
Code Completion
Hot Key Action
⌃Space or ⌃⇧Space Simple or Smart code completion
⌘ Enter Generate code (Getters, Constructors, hashCode/equals, toString)
⌘ ⌥ T Surround with (if..else, try..catch, for, etc.)
⌘ ⌥ J Surround with Live Template
⌥ Enter Show intention actions & quick fixes (inline, surround with, generate, etc.)
⌘ ⌥ O Optimize imports
⌘ ⌥ L Reformat code
⌘ ⌥ N Inline Method
⌘ ⌥ M/V/F/C/P Extract Method/Variable/Field/Constant/Parameter
⇧ F6 Rename all
⌘ J Insert Live Template
VCS
Hot Key Action
⌘ T Update
⌘ K Commit
⌘ ⇧ K Push (Git specific)
⌃ V VCS quick popup
seeAlso: intellij IDEA - shortcuts arcenal (Windows)

No comments:

Post a Comment