IntelliJ IDEA Productivity Tips: Presentation Mode, Inject Language, Shortcut Keys, and Advanced Features
This article presents a collection of practical IntelliJ IDEA tips—including how to use Presentation Mode, inject language for JSON, move splitters with shortcuts, quickly add braces, perform bulk text edits, hide the navigation bar, locate classes, search symbols, and leverage structural search templates—to boost developer efficiency.
In this series the author shares a set of useful IntelliJ IDEA tricks aimed at improving daily coding efficiency, starting with an appreciation of the IDE’s powerful features.
Presentation Mode : Press Alt+V to open the View menu, then select Enter Presentation Mode to focus on a single class. Exit with Alt+V again, though staying in the mode is recommended if you are comfortable with the IDE.
Inject Language : When editing JSON strings, place the cursor inside the quotes and press Alt+Enter , choose Inject language or reference , then select json . Press Enter to open the JSON fragment editor, which automatically escapes double quotes.
Moving Splitters : If a class name is hidden in the Project view, focus the view with Alt+1 and use Ctrl+Shift+←/→ to adjust the divider without using the mouse.
Ctrl+Shift+Enter : This shortcut not only adds a semicolon but also completes statements, such as inserting missing braces for an if block.
Bulk Text Replacement : To replace multiple occurrences of a term like rabbitTemplate , select the first occurrence with Ctrl+W , then press Alt+J repeatedly to add the others to the selection and edit them simultaneously.
Hide Navigation Bar : Press Alt+V and toggle Navigation bar off for a cleaner UI. Show it temporarily with Alt+Home and hide again with Esc .
Locate Class in Project View : Use Alt+F1 , choose Select in → Project View , and press Enter to jump directly to the file’s location.
Symbol Search : Press Ctrl+Shift+Alt+N and type a symbol name (e.g., user ) to quickly find methods or classes.
Template‑Based Search : Open the Action dialog with Ctrl+Shift+A , type Search Struct , select Search Structurally , and configure a template (e.g., try with CatchStatement set to a maximum count of 1) to locate specific code patterns such as empty catch blocks.
The article concludes by encouraging readers to share the content, join the architecture community, and follow the provided links for more in‑depth tutorials.
Java Architect Essentials
Committed to sharing quality articles and tutorials to help Java programmers progress from junior to mid-level to senior architect. We curate high-quality learning resources, interview questions, videos, and projects from across the internet to help you systematically improve your Java architecture skills. Follow and reply '1024' to get Java programming resources. Learn together, grow together.
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.