Find action
Quick Lists
- Ctrl+Alt+Shift+T for “Refactor This”
- Alt+` for VCS Operations.
- Create a quick list “Refactor -> Extract”, add all commands and assign “Ctrl+alt+shit+e” to it.
Disable Linux Default Shortcuts
Disable the following Linux default shortcuts in System Preferences -> Keyboard -> Shortcut tab:
- Disable Ctrl+Alt+S for “Toggle shaded state” at Widnows as it conflicts with Settings.
- Disable Ctrl+alt+left/right for “Switch to left/right workspace” as it conflicts with IntelliJ Navigate -> backward/forward.
- Disable Ctrl+Alt+T for Launch Terminal at Launchers as it conflicts with “Surround with”
- Disable Alt+F7 for Move Window at Windows -> Positioning as it conflicts with Find Usages
- Disable Alt+F8 for Resize Window at Windows -> Positioning as it conflicts with Evaluate Expression.
Customize Shortcuts
Some shortcuts in IntelliJ are difficult to remember and use, change them at Settings -> Keymap:
- Change Alt+enter for Show intention actions to “Ctrl+1”:
- “Ctrl+1” is much easier to use: just one (left) hand, have to use two hands for Alt+enter or use Alt+enter on the right side of keyboard.
- Change reformat code from “Ctrl+alt+l” to “Ctrl+alt+shift+f”, as the previous conflicts with Linux Logout shortcut.
- Assign “Editor” -> “Close tab” from “Ctrl+F4” to “Ctrl+w” and unassign it for “extend slection”
- Assign “Alt-Shit-+(-)” to increase/decrease font size.
Common shortcuts
Double Shift | Search Everywhere |
Double ctrl | Run Anything |
Open settings | Ctrl+Alt+S |
Alt+1 | Toggle Project View |
Alt+7 | Toggle structure View |
Alt+2 | Toggle Favorite View |
Alt+6 | Toggle TODO View |
Alt+9 | Toggle Version Control View |
Ctrl+shift+left/right/up/down | Stretch active window to .. |
- Alt+1 to focus on project view, then use Ctrl+shift+left(right) to move the separator.
Shortcuts for Navigation
- to find directory: ctrl+shif+n for find file: then type “/the_directory_name”
Ctrl+e | Recent files, press ctrl+e again to show changed files only |
Ctrl+shift+e | Recent locations, press again to show changed locations only |
Ctrl+n | Find class |
Ctrl+Shift+N | Find File |
Ctrl+Shift+F | Find in path |
Ctrl+alt+shift+n | Find Symbol |
Ctrl+B, Ctrl+Click | Step Into/Show Usages |
Alf+F7 | Find Usages |
Ctrl+H | Hierarchy |
Ctrl+F12 | File Structure: Outline |
Ctrl(+shift)+w | Extend or shrink selection |
Ctrl+shift+backspace | Navigate -> Previous edit location |
Ctrl+Shift+V | Paste from five previous copies |
Ctrl+F4 | Close editor |
Ctrl+alt+left/right | Navigate -> backward/forward |
F2/Shift+F2 | Go to next/previous error |
Ctrl+G | Go to line |
Ctrl+Shift+T | Navigating between test and test subject or create a test |
Shortcuts for Java Source
- Change reformat code from “Ctrl+alt+l” to “Ctrl+alt+shift+f”, as the previous conflicts with Linux Logout shortcut.
- Documentation comment block: /** + Enter
Ctrl+F12 | File structure (outline) |
Ctrl+Alt+o | Organize import(remove unused and reorder) |
Ctrl+b (or Ctrl+click) | Go to declaration |
Ctrl+alt+b | Go to implementation |
Alt+insert | Generate |
Ctrl+space | basic auto-completion |
Ctrl+shift+space | Smart Type Completion |
Alt+enter | Show intention actions |
Ctrl+Alt+Shift+Insert | Create Scratch file |
Ctrl+Shift+T | Create/Navigate to test |
Ctrl+shift+enter | Complete current statement |
Ctrl(+Shift)+l | Add/remove line or block comment |
Ctrl+y (y for yes) | delete line |
Ctrl+p | Parameter info |
Ctrl+Shift+V | Paste from five previous copies |
Alt+alt+t | Surround with … |
Ctrl+Alt+j | Surround with template |
Ctrl+Shift+U | Toggling Case |
Shortcuts for Refactoring
Ctrl+Alt+(v/c/f/m/p) | Extract variable/constant/field/method/parameter |
F6 | Move Class (make inner from anonymous, move inner to outer) |
Shift+F6 | Rename |
F5 | Copy file |
Shortcuts for Debugging
F8 | Step over |
F7 | Step into |
Shift + F7 | Smart step into |
Shift + F8 | Step out |
Alt + F9 | Run to cursor |
Alt + F8 | Evaluate expression |
F9 | Resume program |
Ctrl + F8 | Toggle breakpoint |
Ctrl + Shift + F8 | View breakpoints |
Mouse Action
- See type info: Ctrl and hover mouse over variable/method
- Go to definition: Ctrl and click on variable/method
Presentation Mode
- Alt+V > Enter Presentation Mode or use double shift or ctrl+shift+a then type “Presentation”.
- To exit presentation mode: Alt+V > Exit Presentation Mode.
More tips about shortcuts
- Press again for more results
- type and search in a tree/list/table