Unlock IntelliJ IDEA: 14 Hidden Shortcuts to Supercharge Your Coding
This guide presents fourteen practical IntelliJ IDEA shortcuts—including navigation, code folding, bookmark management, and UI tweaks—explaining when to use them, common pitfalls, and step‑by‑step key sequences so developers can work faster and avoid common mistakes.
1. Avoid Over‑Customizing Shortcuts
IntelliJ IDEA leaves many actions without default shortcuts, so developers often create their own. Over‑customization can cause conflicts with other applications, be hard to remember, and break when sharing the IDE with teammates.
Rebuild Project
Compare With Branch
Use Ctrl+Shift+A to search for any action by name, e.g., type "Rebuild Project" and press Enter to execute it directly.
2. Use Ctrl+Alt+H Carefully
Ctrl+Alt+H shows the call hierarchy, but it only displays the depth of calls, not the exact number of invocations. When a method is called multiple times, the hierarchy can be misleading.
public class TestService {
public void test1() {
System.out.println("aa");
}
public void test2() {
test1();
}
public void test3() {
test1(); // called twice
test1();
}
}For precise callers, use Alt+F7 instead.
3. Common Questions About Ctrl+Alt+H
Jump to Source
After invoking Ctrl+Alt+H, select a call with the arrow keys and press F4 to open the source file.
Return to Hierarchy View
Press Alt+8 to go back to the Call Hierarchy window.
4. Quickly Find Controller Methods
When a project contains many controllers, press Ctrl+Alt+Shift+N and type part of the URL (e.g., "/bill") to locate the corresponding method instantly.
5. Bookmark Key Business Methods
Bookmarks let you collect important methods in one place for easy navigation.
Steps:
Press Ctrl+F12 to list all methods in the class and type the method name (e.g., test1).
Press F11 to add the method to bookmarks.
Press Shift+F11 to open the bookmark list.
Press Ctrl+Enter to rename the bookmark.
6. Keep Only One Tab
Configure the IDE to use a single editor tab: open Settings with Ctrl+Shift+A, search for "Editor Tabs", set Placement to None . Use Ctrl+E to view recent files.
7. Read Long or Smelly Code Efficiently
Create Custom Code Folding Blocks : Place the cursor inside a block and press Ctrl+Shift+. Use Ctrl+- to collapse.
Brace Matching : Position the cursor on a brace and press Ctrl+] or Ctrl+[ to jump to the matching brace.
Highlight Variable Usage : Ctrl+Shift+F7 highlights all usages; press F3 to navigate to the next occurrence.
Quick Definition Popup : Ctrl+Shift+I shows the definition of the symbol under the cursor in a popup.
Press Esc to close the popup.
8. Jump to Superclass or Interface
When editing an implementation method, press Ctrl+U to navigate to the corresponding method in the super‑type.
public interface UserService {
void test1();
} public class UserServiceImpl implements UserService {
@Override
public void test1() {
// implementation
}
}9. Undo/Redo Shortcut
Use Ctrl+Z to undo recent changes and Ctrl+Shift+Z to redo them.
10. Switch Color Scheme Quickly
Press Ctrl+` (Ctrl plus back‑tick), select "Color Scheme", and press Enter to open the theme selector.
End
These fourteen shortcuts and tips help you navigate, refactor, and understand large codebases more efficiently within IntelliJ IDEA.
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
Programmer DD
A tinkering programmer and author of "Spring Cloud Microservices in Action"
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
