PyCharm 2024.3 Help

Keymap reference

When consulting this page and other pages in PyCharm documentation, you can see keyboard shortcuts for the keymap that you use in the IDE — choose it using the selector at the top of a page.

PyCharm's top keyboard shortcuts

Search Everywhere

Double Shift

Find Action...

Ctrl+Shift+A

Show Project window

Alt+1

Rebuild

Ctrl+Shift+F9

Show Intention Actions

Alt+Enter

Recent Files

Ctrl+E

Find Usages

Alt+F7

Select In...

Alt+F1

Settings...

Ctrl+Alt+S

Generate...

Alt+Insert

Run Anything

Double Ctrl

Debug...

Alt+Shift+F9

View Breakpoints...

Ctrl+Shift+F8

Attach to Process...

Ctrl+Alt+F5

VCS Operations Popup...

Alt+`

Refactor This...

Ctrl+Alt+Shift+T

Reformat Code

Ctrl+Alt+L

Build projects

New in This Directory

Ctrl+Alt+Insert

Build Project

Ctrl+F9

Rebuild

Ctrl+Shift+F9

Basic editing

Cut

Ctrl+X

Copy

Ctrl+C

Paste

Ctrl+V

Paste as Plain Text

Ctrl+Alt+Shift+V

Paste from History...

Ctrl+Shift+V

Copy Paths

Ctrl+Shift+C

Copy Reference

Ctrl+Alt+Shift+C

Save All

Ctrl+S

Undo

Ctrl+Z

Redo

Ctrl+Shift+Z

Indent Selection

Tab

Unindent Line or Selection

Shift+Tab

Auto-Indent Lines

Ctrl+Alt+I

Start New Line

Shift+Enter

Start New Line Before Current

Ctrl+Alt+Enter

Delete Line

Ctrl+Y

Join Lines

Ctrl+Shift+J

Duplicate Line or Selection

Ctrl+D

Toggle Case

Ctrl+Shift+U

Scratch File

Ctrl+Alt+Shift+Insert

Open Source in New Window

Shift+F4

Increase Font Size in All Editors

Alt+Shift+.

Decrease Font Size in All Editors

Alt+Shift+Comma

Caret navigation

Move Caret to Previous Word

Ctrl+Left

Move Caret to Next Word

Ctrl+Right

Move Caret to Line Start

Home

Move Caret to Line End

End

Move Caret to Matching Brace

Ctrl+Shift+M

Move Caret to Code Block Start

Ctrl+[

Move Caret to Code Block End

Ctrl+]

Next Method

Alt+Down

Previous Method

Alt+Up

Move Caret to Page Top

Ctrl+Page Up

Move Caret to Page Bottom

Ctrl+Page Down

Page Up

Page Up

Page Down

Page Down

Move Caret to Text Start

Ctrl+Home

Move Caret to Text End

Ctrl+End

Select text

Select All

Ctrl+A

Left with Selection

Shift+Left

Right with Selection

Shift+Right

Move Caret to Previous Word with Selection

Ctrl+Shift+Left

Move Caret to Next Word with Selection

Ctrl+Shift+Right

Move Caret to Line Start with Selection

Shift+Home

Move Caret to Line End with Selection

Shift+End

Up with Selection

Shift+Up

Down with Selection

Shift+Down

Move Caret to Code Block Start with Selection

Ctrl+Shift+[

Move Caret to Code Block End with Selection

Ctrl+Shift+]

Move Caret to Page Top with Selection

Ctrl+Shift+Page Up

Move Caret to Page Bottom with Selection

Ctrl+Shift+Page Down

Page Up with Selection

Shift+Page Up

Page Down with Selection

Shift+Page Down

Move Caret to Text Start with Selection

Ctrl+Shift+Home

Move Caret to Text End with Selection

Ctrl+Shift+End

Extend Selection

Ctrl+W

Shrink Selection

Ctrl+Shift+W

Code folding

Expand

Ctrl+NumPad +

Collapse

Ctrl+NumPad -

Expand Recursively

Ctrl+Alt+NumPad +

Collapse Recursively

Ctrl+Alt+NumPad -

Expand All

Ctrl+Shift+NumPad +

Collapse All

Ctrl+Shift+NumPad -

Fold Selection

Ctrl+.

Multiple carets and selection ranges

Coding assistance

Show Intention Actions

Alt+Enter

Basic Completion

Ctrl+Space

Type-Matching Completion

Ctrl+Shift+Space

Second Basic Completion

Ctrl+Alt+Space

Complete Code with AI Assistant

Alt+\

Generate Code with AI Assistant

Ctrl+\

Complete Current Statement

Ctrl+Shift+Enter

Reformat Code

Ctrl+Alt+L

Parameter Info

Ctrl+P

Quick Documentation

Ctrl+Q

Move Statement Up

Ctrl+Shift+Up

Move Statement Down

Ctrl+Shift+Down

Move Element Left

Ctrl+Alt+Shift+Left

Move Statement Right

Ctrl+Alt+Shift+Right

Move Line Up

Alt+Shift+Up

Move Line Down

Alt+Shift+Down

Comment with Line Comment

Ctrl+/

Comment with Block Comment

Ctrl+Shift+/

Surround With...

Ctrl+Alt+T

Generate...

Alt+Insert

Context navigation

Next Method

Alt+Down

Previous Method

Alt+Up

Go to Line/Column...

Ctrl+G

Switcher

Ctrl+Tab

Select In...

Alt+F1

Recent Files

Ctrl+E

Recent Changes

Alt+Shift+C

Last Edit Location

Ctrl+Shift+Backspace

Back

Ctrl+Alt+Left

Forward

Ctrl+Alt+Right

Select Next Tab

Alt+Right

Select Previous Tab

Alt+Left

Toggle Anonymous Bookmark

F11

Toggle Bookmark with Digit

Ctrl+Shift+[digit]

Toggle Bookmark with Mnemonic

Ctrl+F11

Show All Bookmarks

Shift+F11

Go to Bookmark with Digit

Ctrl+[digit]

Show Mnemonic Bookmarks

Ctrl+Shift+F11

Show Bookmarks window

Alt+2

Show Structure window

Alt+7

Show Find window

Alt+3

Next Occurrence

Ctrl+Alt+Down

Previous Occurrence

Ctrl+Alt+Up

Find everything

Search Everywhere

Double Shift

Find...

Ctrl+F

Find Next / Move to Next Occurrence

F3

Find Previous / Move to Previous Occurrence

Shift+F3

Replace...

Ctrl+R

Find in Files...

Ctrl+Shift+F

Replace in Files...

Ctrl+Shift+R

Next Occurrence of the Word at Caret

Ctrl+F3

Go to File...

Ctrl+Shift+N

File Structure

Ctrl+F12

Go to Symbol...

Ctrl+Alt+Shift+N

Find Action...

Ctrl+Shift+A

Code analysis

Run and debug

Run Anything

Double Ctrl

Run context configuration

Shift+F10

Run...

Alt+Shift+F10

Debug context configuration

Shift+F9

Debug...

Alt+Shift+F9

Attach to Process...

Ctrl+Alt+F5

Stop

Ctrl+F2

Resume Program

F9

Stop Background Processes...

Ctrl+Shift+F2

Step Over

F8

Force Step Over

Alt+Shift+F8

Step Into

F7

Smart Step Into

Shift+F7

Force Step Into

Alt+Shift+F7

Step Out

Shift+F8

Run To Cursor

Alt+F9

Force Run To Cursor

Ctrl+Alt+F9

Show Execution Point

Alt+F10

Evaluate Expression...

Alt+F8

Quick Evaluate Expression

Ctrl+Alt+F8

Toggle Line Breakpoint

Ctrl+F8

Toggle Temporary Line Breakpoint

Ctrl+Alt+Shift+F8

View Breakpoints...

Ctrl+Shift+F8

Edit Breakpoint

Ctrl+Shift+F8

Show Run window

Alt+4

Show Debug window

Alt+5

Show Services window

Alt+8

Refactorings

Refactor This...

Ctrl+Alt+Shift+T

Rename...

Shift+F6

Change Signature...

Ctrl+F6

Inline...

Ctrl+Alt+N

Move...

F6

Extract Method...

Ctrl+Alt+M

Introduce Field...

Ctrl+Alt+F

Introduce Parameter...

Ctrl+Alt+P

Introduce Variable...

Ctrl+Alt+V

Safe Delete...

Alt+Delete

Global VCS actions

VCS Operations Popup...

Alt+`

Commit...

Ctrl+K

Update Project

Ctrl+T

Rollback

Ctrl+Alt+Z

Push...

Ctrl+Shift+K

Next Change

Ctrl+Alt+Shift+Down

Previous Change

Ctrl+Alt+Shift+Up

Show Version Control window

Alt+9

Show Commit window

Alt+0

Diff Viewer

Show Diff

Ctrl+D

Compare Files

Ctrl+D

Next Difference

F7

Previous Difference

Shift+F7

Accept Left Side

Ctrl+Alt+R

Accept Right Side

Ctrl+Alt+A

Select Opposite Diff Pane

Ctrl+Shift+Tab

Show Diff Settings Popup...

Ctrl+Shift+D

Tool windows

Last modified: 11 February 2024