You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Has plugins for Ruby, Go, PHP, Node.js, Angular, React, and more
Supports Coffee/Type/Javascript
Settings sync via JetBrains account
All shortcuts here are from my personal keymap, that was adapted from
the Mac OS X 10.5+ keymap. Search for the Action name in your own
keymap (Preferences --> Keymap).
For shortcuts, option == alt in Mac (it's the Windows ⊞ key on
most non-Mac keyboards. The order of the modifier keys is ->
ctrloptioncmd.
Search
Command
Action
Notes
cmd + shift + a
Find action
Fuzzy search
cmd + shift + f
Find in path
Fuzzy + regex + limit scope (default is everything)
cmd + enter
Open in Find window
Open/close window with cmd + 3
shift * 2
Find anything
Fuzzy search
cmd + e
Recent files
List of recently closed files
cmd + e + e
Recently changed files
List of recently edited files
cmd + shift + e
Recently locations
Recently edited locations in files
Navigation
Between parts of the IDE
Command
Action
Notes
ctrl + tab
Switcher
Learn the shortcuts
cmd + number/letter
Open/close tool window
See full list in the Switcher
shift + esc
Hide active tool window
Needs to be in focus
option + F1 -> enter
Scroll to file in project browser
Current file in focus
In code
Command
Action
Notes
cmd + b
Go to declaration
Cursor on function usage
cmd + b
Usages quick list
Cursor on function declaration
cmd + F7
Find usages
Cursor on function declaration/usage
cmd + F12
File Structure
Fuzzy search works here
cmd + shift + left
Navigate back
In same file, or different files
cmd + shift + right
Navigate forward
In same file, or different files
ctrl + option + down
Go to next usage
Cursor on code element
ctrl + option + up
Go to previous usage
Cursor on code element
cmd + F3
Find word at caret
Will select the word after the caret
F3
Find next word
After cmd + F3
shift + F3
Find previous word
After cmd + F3
Editing
Multiple selection + editing
Command
Action
Notes
cmd + d/j
Add selection for Next Occurrence
After selecting a word
cmd + shift + d/j
Unselect Occurrence
cmd + shift + i
Column selection mode
Multiple cursors
Refactoring
Command
Action
Notes
shift + F6
Refactor --> Rename
Cursor on code element (e.g. var/function)
F6
Refactor --> Move
Cursor on code element (e.g. method)
cmd + option + t
Surround with
Opens a list of options
cmd + option + v
Extract --> Variable
After selecting a piece of code
Folding elements
Command
Action
Notes
cmd + shift + +
Expand all
cmd + shift + -
Collapse all
cmd + +
Expand block
cmd + -
Collapse block
cmd + option + +
Expand recursively
Completely expand a single block
Tip
Surround parts of code with custom regions to help with expanding/collapsing
large files (cmd + option + t -> region..endregion Comments).
couple of suggestions I think might be useful: cmd + shift + backspace - go to last edited location cmd + e + e - recently changed files cmd + shift + e - recent locations (new feature) cmd + alt + z - revert to code block/file to latest from version control
Also, if you get used to navigate files using cmd + e, cmd + e + e, cmd + alt + arrows you might want to switch off tabs completely
cmd + shift + up/down - move code section (e.g. function) above/below same-scope element (e.g. reverse order of functions in file) cmd + H - hierarchy of classes (mostly useful in java/kotlin)
cmd + F12 which you've mentioned is AFAIK "find method" in Java; you also have cmd + N for finding a class, and cmd + shift + N for finding a file, personally to navigate I mostly use these two.
Also might worth mentioning some various code insertion hotkeys (getters, overrides, ..)
Also, for the remote debug statement --> I have it under a snippet, so basically when I write "debug" then click Tab it just autocompletes it, makes things simpler.
couple of suggestions I think might be useful:
cmd + shift + backspace
- go to last edited locationcmd + e + e
- recently changed filescmd + shift + e
- recent locations (new feature)cmd + alt + z
- revert to code block/file to latest from version controlAlso, if you get used to navigate files using
cmd + e
,cmd + e + e
,cmd + alt + arrows
you might want to switch off tabs completely