Keyboard Shortcuts for IntelliJ IDEA (macOS) – {150+ Easy shortcuts}

Shortcuts for IntelliJ IDEA (macOS):

IntelliJ IDEA is a cross-platform IDE. It is compatible with macOS, Windows, and Linux operating systems. It is really easy to use and consume less memory. Let’s see the Shortcuts for IntelliJ IDEA for macOS.

IntelliJ IDEA
IntelliJ IDEA

Last Updated on Aug 3, 2020.

Download IntelliJ IDEA(macOS) Keyboard Shortcuts for Offline Study Here: IntelliJ IDEA Shortcuts.PDF

Useful Shortcuts:

Shortcut Function
CTRL+Shift+Space Used for Smart code completion
Shift then Shift Used to Search everywhere
⌘ Cmd+Enter This Shortcut will Show intention actions and quick fixes
⌘ Cmd+NorControl+Enter It is Used to Generate code
⌘ Cmd+P Show Parameter info
⌥ Option+⌘ Cmd+ Used to Extend selection
⌥ Option+⌘ Cmd+ It is Used to Shrink selection
⌘ Cmd+E It will popup Recent files
Shift+F6 Rename

General Shortcuts:

Shortcut Function
⌘ Cmd+Num 0Num 9 The open corresponding tool window
⌘ Cmd+S Used to Save all
⌘ Cmd+⌥ Option+Y Synchronize
⌘ Cmd+Shift+F12 It will Toggle maximizing editor
⌥ Option+Shift+I Helps to Inspect current file with the current profile
Control+§orControl+` It is Used to Quick switch to the current scheme
⌘ Cmd+, It will Open Settings dialog box
⌘ Cmd+; Used to Open project structure dialog
⌘ Cmd+Shift+A Find action

Debugging Shortcuts:

Shortcut Function
F8 Step over
F7 Step into
Shift+F7 Smart step into
Shift+F8 Smart step out
⌥ Option+F9 It will Run to cursor
⌥ Option+F8 Used to Evaluate an expression
⌘ Cmd+⌥ Option+R This Shortcut will Resume program
⌘ Cmd+F8 Used to Toggle breakpoint
⌘ Cmd+Shift+F8 This will View breakpoints

Search and Replace Shortcuts:

Shortcut Function
Shift then Shift Used to Search everywhere
Shift+F Enable Find option
⌘ Cmd+G Find next
⌘ Cmd+Shift+G Find previous
⌘ Cmd+R Replace
⌘ Cmd+Shift+F Find in path
⌘ Cmd+Shift+R Replace in path
CTRL+G This Shortcut is Used to Select the next occurrence
CTRL+⌘ Cmd+G Used to Select all occurrences
Control+G Helps to Unselect occurrence

Editing Shortcuts:

Shortcut Function
Control+Space Show Basic code completion
Control+Shift+Space Smart code completion
⌘ Cmd+Shift+Enter It will Show Complete statement
⌘ Cmd+P Show Parameter info
Control+J Quick documentation lookup
Shift+F1 External doc
⌘ Cmd+ Gives Brief info
⌘ Cmd+F1 Used to Show descriptions of error at caret
⌘ Cmd+NorControl+Enter It is Used to Generate code
Control+O It will Override methods
Control+I Used to Implement methods
⌘ Cmd+⌥ Option+T This shortcut will surround with..
⌘ Cmd+/ Used to Comment or uncomment with line comment
⌘ Cmd+⌥ Option+/ It is Used to Comment or uncomments with block comment
⌥ Option+ It will Extend selection
⌥ Option+ Used to Shrink selection
Control+Shift+Q Show Context info
⌥ Option+Enter Used to Show intention actions and quick-fixes
⌘ Cmd+⌥ Option+L Used to Reformat the code
Control+⌥ Option+O Optimize imports
Control+⌥ Option+I Auto-indent line
Tab Indent selected lines
Shift+Tab Used to Unindent selected lines
⌘ Cmd+X It will Cut the current line to clipboard
⌘ Cmd+C Used to Copy current line to clipboard
⌘ Cmd+V It is Used to Paste from clipboard
⌘ Cmd+Shift+V Used to Paste from recent buffers
⌘ Cmd+D It will Duplicate current line
⌘ Cmd+Del Used to Delete line at caret
Control+Shift+J Smart line join
⌘ Cmd+Enter Smart line split
Shift+Enter Start a new line
⌘ Cmd+Shift+U Used to Toggle case for word at caret or selected block
⌘ Cmd+Shift+]or⌘ Cmd+Shift+[ It will Select till code block end or start
⌥ Option+ForwardDel Used to Delete to the word end
⌥ Option+Del Used to Delete to the word start
⌘ Cmd++ It is Used to Expand code block
⌘ Cmd+ Used to Collapse code block
⌘ Cmd+Shift++ Expand all
⌘ Cmd+Shift+ Used to Collapse all
⌘ Cmd+W It is Used to Close active editor tab

Refactoring Shortcuts:

Shortcut Function
F5 Copy
F6 Move
⌘ Cmd+Del Safe delete
Shift+F6 Rename
⌘ Cmd+T Refactor this
⌘ Cmd+F6 Used to Change signature
⌘ Cmd+⌥ Option+N Inline
⌘ Cmd+⌥ Option+M This Shortcut Extract method
⌘ Cmd+⌥ Option+V It is Used to Extract variable
⌘ Cmd+⌥ Option+F Used to Extract field
⌘ Cmd+⌥ Option+C Used to Extract constant
⌘ Cmd+⌥ Option+P It is Used to Extract parameter
Shortcut Function
⌘ Cmd+O Go to class
⌘ Cmd+Shift+O Go to file
⌘ Cmd+⌥ Option+O Go to symbol
Control+← → Go to previous or next editor tab
F12 Go back to the previous tool window
Esc It is Used to Go to editor from tool window
Shift+Esc Used to Hide active or last active window
⌘ Cmd+L Go to line
⌘ Cmd+E This Shortcut will popup Recent files
Command+⌥ Option+← → Used to Navigate back or forward
Command+Shift+Del It is Used to Navigate to last edit location
⌥ Option+F1 It is Used to Select the current file or symbol in any view
⌘ Cmd+Bor⌘ Cmd+ Used to Go to declaration
⌘ Cmd+⌥ Option+B Go to implementation
⌘ Cmd+Spaceor⌘ Cmd+Y It will Open quick definition lookup
Control+Shift+B Go to the type declaration
⌘ Cmd+U It will Go to super-method or super-class
Control+↑↓ This Shortcut is used to Go to the previous or next method
⌘ Cmd+] Used to Move to code block end
⌘ Cmd+[ This shortcut will Move to code block start
⌘ Cmd+F12 It will Popup the File structure
Control+H Type hierarchy
⌘ Cmd+Shift+H Method hierarchy
⌘ Cmd+⌥ Option+H Call hierarchy
F2 Next highlighted error
Shift+F2 Previously highlighted error
F4 Used to Edit source
⌘ Cmd+ It is Used to View source
⌥ Option+Home It will Show navigation bar
F3 Used to Toggle bookmark
⌥ Option+F3 It will Toggle bookmark with mnemonic
Control+Num 0Num 9 Go to numbered bookmark
⌘ Cmd+F3 This shortcut will Show bookmarks

Compile and Run Shortcuts:

Shortcut Function
⌘ Cmd+F9 Make project
⌘ Cmd+Shift+F9 Used to Compile selected file, package or module
⌘ Cmd+⌥ Option+R Used to Select configuration and run
⌘ Cmd+⌥ Option+D This Shortcut us Used to Select configuration and debug
⌘ Cmd+R Run
⌘ Cmd+Shift+Ror⌘ Cmd+Shift+D Used to Run context configuration from the editor

Usage Search Shortcuts:

Shortcut Function
⌥ Option+F7 This shortcut is used to Find usages
⌘ Cmd+F7 Used to Find usages in file
⌘ Cmd+⌥ Option+F7 It will Show usages

VCS or Local History Shortcuts:

Shortcut Function
⌘ Cmd+K This will Commit project to VCS
⌘ Cmd+T Used to Update project from VCS
⌘ Cmd+Shift+K This Shortcut is used to Push commits
Control+V Quick popup “VCS”

Live Templates Shortcuts:

Shortcut Function
⌘ Cmd+⌥ Option+J It will Surround with Live Template
⌘ Cmd+J Used to Insert live template

In this article, you can clearly learn all the shortcuts for the IntelliJ IDEA (macOS). If you like this article, leave your feedback in the comment section.

Leave a Comment