I wanted to share my tips and tricks that and especially keyboard shortcuts that make me more productive when using IntelliJ IDEA. IntelliJ is my favorite IDE and a very well thought-out program in general, and despite trying to learn the countless shortcuts available, there are a few that give you the biggest productivity boost already.
My frequently used features and shortcuts that I showed in the video are:
Coding
- IdeaVIM
- Live templates (e.g.
main→public static void main( …) - Postfix completion (e.g.
"Hello".sout→System.out.println("Hello");) Ctrl+Space: Basic code completionCtrl+Shift+Enter: Complete current statementAlt+Enter: Show context actions (aka “quick fix”)Ctrl+Alt+L: Reformat code (and optimize imports when activated)Ctrl+B: Go to declaration / usageCtrl+Shift+B: Go to implementation(s)Ctrl+U: Go to super methodAlt+Insert: Generate codeF2: Next highlighted errorCtrl+Alt+V/F/C/P: Extract variable / field / constant / parameterCtrl+Alt+N: InlineCtrl+F12: File structure (e.g. list of methods)
Navigating
Ctrl+N: Go to classCtrl+Shift+N: Go to fileShift+Shift: Find allAlt+1: Project viewAlt+F1+Enter: Jump to file in project viewCtrl+Shift+F: Find in filesAlt+Left/Right: Switch open files- NerdTree in IdeaVIM
Running
Ctrl+Shift+F10: Run current contextShift+F10: RunShift+F9: DebugF7/F8/F9: (debug mode) Step into / Step over / Resume program
Published on Java Code Geeks with permission by Sebastian Daschner, partner at our JCG program. See the original article here: My tips for using IntelliJ IDEA effectively (Video) Opinions expressed by Java Code Geeks contributors are their own. |
Do you want to know how to develop your skillset to become a Java Rockstar?
Subscribe to our newsletter to start Rocking right now!
To get you started we give you our best selling eBooks for FREE!
1. JPA Mini Book
2. JVM Troubleshooting Guide
3. JUnit Tutorial for Unit Testing
4. Java Annotations Tutorial
5. Java Interview Questions
6. Spring Interview Questions
7. Android UI Design
and many more ....
I agree to the Terms and Privacy Policy
Thank you!
We will contact you soon.
Tags
IDE IntelliJ IDEA
👁 Photo of Sebastian Daschner
Sebastian DaschnerApril 14th, 2021Last Updated: April 7th, 2021
Sebastian DaschnerApril 14th, 2021Last Updated: April 7th, 2021
1 1,171 1 minute read

This site uses Akismet to reduce spam. Learn how your comment data is processed.
Thanks, but how do these map to Mac keystrokes?