My Top 10 IntelliJ Commands
(not including Command + F or Command + Shift + F)
10. Command + 1
Show/hide the Project Tab
9. Option + up arrow
Selects word at cursor position. Keep hitting the up arrow to increase scope.
8. Option + Shift + up (or down)
Move the current line up or down instead of using copy and paste.
7. Shift then Shift (double tap)
Brings up a menu to search EVERYTHING. But it also brings up recent files you’ve worked on. Helps you go back and forth between files you’ve looked at recently. This feature is also available via Command + E
6. Command + Shift + N
Make a new scratch file (temporary file) if you just need to paste some stuff. You can get syntax highlighting in it as well.
5. Command + L
Go to line
4. Option + F1 (then Enter to select the first item)
Scrolls to the current file inside the Project view
(Alternatively, in the Project view “settings” (the cog wheel at the top) you can select “Autoscroll from source” then the Project view will always move to the active editor.
3. Command + Shift + A
Opens up the action search menu. Just type what you want to do and magic happens. Want to show whitespace for a file? Type “whitespace”. Want convert tabs to spaces? Type “To Spaces”. Want to convert double quotes to single quotes? Type “quote”. Want a quick peek at the git history? Type “annotate”
(Like Command + Shift + P on Sublime or VSCode but way more stuff baked in without plugins)
2. Control + G
Selects the next instance and adds a new cursor (like Command + D on Sublime or VSCode)
1. Command + Shift + O
Search for a file by name
(like Command + P on Sublime or VSCode). Some varians include Command + 0 to search classnames and Command + Option + O to search symbols.
BONUS: A couple plugins I like:
The “Open in Git Host plugin” opens Github to the current line/file… useful for sharing links. For whatever reason the native handling of that in IntelliJ is disabled for me.
https://plugins.jetbrains.com/plugin/8183-open-in-git-host
Afterglow Theme
Because it just looks good….
https://plugins.jetbrains.com/plugin/8066-afterglow-theme