IntelliJ IDEA 2024.3 Help

Predefined macOS keymap

IntelliJ IDEA's top keyboard shortcuts

Search Everywhere

Double ⇧

Find Action...

⌘ ⇧ A

Show Project window

⌘ 1

Rebuild

⌘ ⇧ F9

Show Intention Actions

βŒ₯ ⏎

Recent Files

⌘ E

Find Usages

βŒ₯ F7

Select In...

βŒ₯ F1

Settings...

⌘ Comma

Generate...

⌘ N

Run Anything

Double βŒƒ

Debug...

βŒƒ βŒ₯ D

View Breakpoints...

⌘ ⇧ F8

Attach to Process...

βŒ₯ ⇧ F5

VCS Operations Popup...

βŒƒ V

Refactor This...

βŒƒ T

Reformat Code

⌘ βŒ₯ L

Build projects

New in This Directory

βŒƒ βŒ₯ N

Build Project

⌘ F9

Rebuild

⌘ ⇧ F9

Basic editing

Cut

⌘ X

Copy

⌘ C

Paste

⌘ V

Paste as Plain Text

⌘ βŒ₯ ⇧ V

Paste from History...

⌘ ⇧ V

Copy Paths

⌘ ⇧ C

Copy Reference

⌘ βŒ₯ ⇧ C

Save All

⌘ S

Undo

⌘ Z

Redo

⌘ ⇧ Z

Indent Selection

β‡₯

Unindent Line or Selection

⇧ β‡₯

Auto-Indent Lines

βŒƒ βŒ₯ I

Start New Line

⇧ ⏎

Start New Line Before Current

⌘ βŒ₯ ⏎

Delete Line

⌘ ⌫

Join Lines

βŒƒ ⇧ J

Duplicate Line or Selection

⌘ D

Toggle Case

⌘ ⇧ U

Scratch File

⌘ ⇧ N

Open Source in New Window

⇧ F4

Increase Font Size in All Editors

βŒƒ ⇧ .

Decrease Font Size in All Editors

βŒƒ ⇧ Comma

Caret navigation

Move Caret to Previous Word

βŒ₯ ←

Move Caret to Next Word

βŒ₯ β†’

Move Caret to Line Start

⌘ ←

Move Caret to Line End

⌘ β†’

Move Caret to Matching Brace

βŒƒ M

Move Caret to Code Block Start

⌘ βŒ₯ [

Move Caret to Code Block End

⌘ βŒ₯ ]

Next Method

βŒƒ ⇧ ↓

Previous Method

βŒƒ ⇧ ↑

Move Caret to Page Top

⌘ Page ↑

Move Caret to Page Bottom

⌘ Page ↓

Page Up

Page ↑

Page Down

Page ↓

Move Caret to Text Start

⌘ Home

Move Caret to Text End

⌘ End

Select text

Select All

⌘ A

Left with Selection

⇧ ←

Right with Selection

⇧ β†’

Move Caret to Previous Word with Selection

βŒ₯ ⇧ ←

Move Caret to Next Word with Selection

βŒ₯ ⇧ β†’

Move Caret to Line Start with Selection

⌘ ⇧ ←

Move Caret to Line End with Selection

⌘ ⇧ β†’

Up with Selection

⇧ ↑

Down with Selection

⇧ ↓

Move Caret to Code Block Start with Selection

⌘ βŒ₯ ⇧ [

Move Caret to Code Block End with Selection

⌘ βŒ₯ ⇧ ]

Move Caret to Page Top with Selection

⌘ ⇧ Page ↑

Move Caret to Page Bottom with Selection

⌘ ⇧ Page ↓

Page Up with Selection

⇧ Page ↑

Page Down with Selection

⇧ Page ↓

Move Caret to Text Start with Selection

⌘ ⇧ Home

Move Caret to Text End with Selection

⌘ ⇧ End

Extend Selection

βŒ₯ ↑

Shrink Selection

βŒ₯ ↓

Code folding

Expand

⌘ NumPad +

Collapse

⌘ NumPad -

Expand Recursively

⌘ βŒ₯ NumPad +

Collapse Recursively

⌘ βŒ₯ NumPad -

Expand All

⌘ ⇧ NumPad +

Collapse All

⌘ ⇧ NumPad -

Fold Selection

⌘ .

Multiple carets and selection ranges

Coding assistance

Show Intention Actions

βŒ₯ ⏎

Basic Completion

βŒƒ Space

Type-Matching Completion

βŒƒ ⇧ Space

Second Basic Completion

βŒƒ βŒ₯ Space

Complete Code with AI Assistant

βŒ₯ \

Generate Code with AI Assistant

⌘ \

Complete Current Statement

⌘ ⇧ ⏎

Reformat Code

⌘ βŒ₯ L

Parameter Info

⌘ P

Quick Documentation

F1

Move Statement Up

⌘ ⇧ ↑

Move Statement Down

⌘ ⇧ ↓

Move Element Left

⌘ βŒ₯ ⇧ ←

Move Statement Right

⌘ βŒ₯ ⇧ β†’

Move Line Up

βŒ₯ ⇧ ↑

Move Line Down

βŒ₯ ⇧ ↓

Comment with Line Comment

⌘ /

Comment with Block Comment

⌘ βŒ₯ /

Surround With...

⌘ βŒ₯ T

Generate...

⌘ N

Context navigation

Next Method

βŒƒ ⇧ ↓

Previous Method

βŒƒ ⇧ ↑

Go to Line/Column...

⌘ L

Switcher

βŒƒ β‡₯

Select In...

βŒ₯ F1

Recent Files

⌘ E

Recent Changes

βŒ₯ ⇧ C

Last Edit Location

⌘ ⇧ ⌫

Back

⌘ [

Forward

⌘ ]

Select Next Tab

⌘ ⇧ ]

Select Previous Tab

⌘ ⇧ [

Toggle Anonymous Bookmark

F3

Toggle Bookmark with Digit

βŒƒ ⇧ [digit]

Toggle Bookmark with Mnemonic

βŒ₯ F3

Show All Bookmarks

⌘ F3

Go to Bookmark with Digit

βŒƒ [digit]

Show Mnemonic Bookmarks

⌘ βŒ₯ F3

Show Bookmarks window

⌘ 2

Show Structure window

⌘ 7

Show Find window

⌘ 3

Next Occurrence

⌘ βŒ₯ ↓

Previous Occurrence

⌘ βŒ₯ ↑

Find everything

Search Everywhere

Double ⇧

Find...

⌘ F

Find Next / Move to Next Occurrence

⌘ G

Find Previous / Move to Previous Occurrence

⌘ ⇧ G

Replace...

⌘ R

Find in Files...

⌘ ⇧ F

Replace in Files...

⌘ ⇧ R

Next Occurrence of the Word at Caret

N/A

Go to File...

⌘ ⇧ O

File Structure

⌘ F12

Go to Symbol...

⌘ βŒ₯ O

Find Action...

⌘ ⇧ A

Find Usages

βŒ₯ F7

Go to Declaration or Usages

⌘ B

Go to Type Declaration

⌘ ⇧ B

Show Usages

⌘ βŒ₯ F7

Go to Super Method

⌘ U

Go to Implementation(s)

⌘ βŒ₯ B

Go to Test

⌘ ⇧ T

Highlight Usages in File

⌘ ⇧ F7

Code analysis

Run and debug

Run Anything

Double βŒƒ

Run context configuration

βŒƒ R

Run...

βŒƒ βŒ₯ R

Debug context configuration

βŒƒ D

Debug...

βŒƒ βŒ₯ D

Attach to Process...

βŒ₯ ⇧ F5

Stop

⌘ F2

Resume Program

⌘ βŒ₯ R

Stop Background Processes...

⌘ ⇧ F2

Step Over

F8

Force Step Over

βŒ₯ ⇧ F8

Step Into

F7

Smart Step Into

⇧ F7

Force Step Into

βŒ₯ ⇧ F7

Step Out

⇧ F8

Run To Cursor

βŒ₯ F9

Force Run To Cursor

⌘ βŒ₯ F9

Show Execution Point

βŒ₯ F10

Evaluate Expression...

βŒ₯ F8

Quick Evaluate Expression

⌘ βŒ₯ F8

Toggle Line Breakpoint

⌘ F8

Toggle Temporary Line Breakpoint

⌘ βŒ₯ ⇧ F8

View Breakpoints...

⌘ ⇧ F8

Edit Breakpoint

⌘ ⇧ F8

Show Run window

⌘ 4

Show Debug window

⌘ 5

Show Services window

⌘ 8

Refactorings

Refactor This...

βŒƒ T

Rename...

⇧ F6

Change Signature...

⌘ F6

Inline...

⌘ βŒ₯ N

Move...

F6

Extract Method...

⌘ βŒ₯ M

Introduce Field...

⌘ βŒ₯ F

Introduce Parameter...

⌘ βŒ₯ P

Introduce Variable...

⌘ βŒ₯ V

Safe Delete...

⌘ ⌦

Global VCS actions

VCS Operations Popup...

βŒƒ V

Commit...

⌘ K

Update Project

⌘ T

Rollback

⌘ βŒ₯ Z

Push...

⌘ ⇧ K

Next Change

βŒƒ βŒ₯ ⇧ ↓

Previous Change

βŒƒ βŒ₯ ⇧ ↑

Show Version Control window

⌘ 9

Show Commit window

⌘ 0

Diff Viewer

Show Diff

⌘ D

Compare Files

⌘ D

Next Difference

F7

Previous Difference

⇧ F7

Accept Left Side

⌘ βŒƒ β†’

Accept Right Side

⌘ βŒƒ ←

Select Opposite Diff Pane

βŒƒ ⇧ β‡₯

Show Diff Settings Popup...

⌘ ⇧ D

Tool windows

Hide Active Tool Window

⇧ βŽ‹

Hide All Tool Windows

⌘ ⇧ F12

Jump to Last Tool Window

F12

Stretch to Left

βŒƒ βŒ₯ ←

Stretch to Right

βŒƒ βŒ₯ β†’

Stretch to Top

βŒƒ βŒ₯ ↑

Stretch to Bottom

βŒƒ βŒ₯ ↓

Show Project window

⌘ 1

Show Bookmarks window

⌘ 2

Show Find window

⌘ 3

Show Run window

⌘ 4

Show Debug window

⌘ 5

Show Problems window

⌘ 6

Show Structure window

⌘ 7

Show Services window

⌘ 8

Show Version Control window

⌘ 9

Show Commit window

⌘ 0

Show Terminal window

βŒ₯ F12

Last modified: 18 March 2024