Fundamentals 7 min read

Boost Your Productivity: Essential IntelliJ IDEA Settings, Tips, and Shortcuts

This guide walks you through the most useful IntelliJ IDEA configurations, practical usage tips, and a comprehensive list of keyboard shortcuts, helping you streamline development, reduce memorization effort, and work more efficiently with the IDE.

Java Tech Enthusiast
Java Tech Enthusiast
Java Tech Enthusiast
Boost Your Productivity: Essential IntelliJ IDEA Settings, Tips, and Shortcuts

Common Settings

After reinstalling IntelliJ IDEA, configure:

Theme and font: set to Dark via Settings → Appearance & Behavior → Appearance.

Editor font size via Settings → Editor → Font.

Global and project file encoding via Settings → Editor → File Encoding.

Code templates via Settings → Editor → File and Code Templates.

Keymap customization via Settings → Keymap.

Shortcut Modifications

Copy current line: original Ctrl + D, changed to Ctrl + Alt + ↓ (reason: does not follow operation logic).

Delete current line: original Ctrl + Y, changed to Ctrl + D (reason: does not follow operation logic).

Move line up/down: original Alt + Shift + ↑ / ↓, changed to Alt + ↑ / ↓ (reason: key combination too complex).

Basic code completion: original Ctrl + Space, changed to Alt + / (reason: conflicts with input‑method shortcuts).

Usage Tips

IDEA provides left, middle, and right toolbars; any operation shown there can be used without memorizing a shortcut.

Core navigation is Search Everywhere (double‑press Shift) to search files, classes, actions, and settings.

To locate an action or shortcut, use Search → Action.

When editing MyBatis mapper.xml files and SQL suggestions are missing, add a MySQL data source via Database → Data Source → MySQL.

If certain tags lack suggestions, inject the language or reference MySQL to resolve the issue.

Selecting code shows a floating toolbar with quick actions such as surround, extract variable, and reformat.

Common Shortcuts

Global search (files/classes/actions/settings): Shift + Shift (double‑press) – Navigate → Search Everywhere.

Search class: Ctrl + NNavigate → Class.

Find action (execute command): Ctrl + Shift + AHelp → Find Action.

Go to declaration: Ctrl + Left‑ClickNavigate → Declaration.

Show implementations: Ctrl + Alt + BNavigate → Implementation.

Find usages: Alt + F7Edit → Find Usages.

Navigate back/forward: Alt + ← / →Navigate → Back / Forward.

Go to line: Ctrl + GNavigate → Line….

File structure (current file method list): Ctrl + F12Navigate → File Structure.

Basic code completion: Ctrl + SpaceCode → Completion → Basic.

Smart code completion (type matching): Ctrl + Shift + SpaceCode → Completion → Smart.

Intention actions / import class: Alt + EnterRight‑click → Show Context Actions.

Reformat code (current file): Ctrl + Alt + LCode → Reformat Code.

Comment / uncomment line: Ctrl + /Code → Comment with Line Comment.

Comment / uncomment block: Ctrl + Shift + /Code → Comment with Block Comment.

Copy current line: Ctrl + DEdit → Duplicate Line.

Delete current line: Ctrl + Y (no default menu entry).

Move line up/down: Alt + Shift + ↑ / ↓Code → Move Line Up / Down.

Undo: Ctrl + ZEdit → Undo.

Redo: Ctrl + Shift + ZEdit → Redo.

Rename (variable/class/method): Shift + F6Refactor → Rename.

Column (vertical) editing: hold Alt and drag with left mouse button – Right‑click → Column Selection Mode.

Git commit: Ctrl + KGit → Commit.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

IntelliJ IDEAkeyboard shortcutsdevelopment productivityIDE settingsJava IDE
Java Tech Enthusiast
Written by

Java Tech Enthusiast

Sharing computer programming language knowledge, focusing on Java fundamentals, data structures, related tools, Spring Cloud, IntelliJ IDEA... Book giveaways, red‑packet rewards and other perks await!

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.