PyCharm 2023.2 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...

Control+Shift+A

Show Project window

Alt+1

Rebuild

Control+Shift+F9

Show Intention Actions

Alt+Enter

Recent Files

Control+E

Find Usages

Alt+F7

Select In...

Alt+F1

Settings...

Control+Alt+S

Generate...

Alt+Insert

Run Anything

Double Control

Debug...

Alt+Shift+F9

View Breakpoints...

Control+Shift+F8

Attach to Process...

Control+Alt+F5

VCS Operations Popup...

Alt+`

Refactor This...

Control+Alt+Shift+T

Reformat Code

Control+Alt+L

Build projects

New in This Directory

Control+Alt+Insert

Build Project

Control+F9

Rebuild

Control+Shift+F9

Basic editing

Cut

Control+X

Copy

Control+C

Paste

Control+V

Paste as Plain Text

Control+Alt+Shift+V

Paste from History...

Control+Shift+V

Copy Paths

Control+Shift+C

Copy Reference

Control+Alt+Shift+C

Save All

Control+S

Undo

Control+Z

Redo

Control+Shift+Z

Indent Selection

Tab

Unindent Line or Selection

Shift+Tab

Auto-Indent Lines

Control+Alt+I

Start New Line

Shift+Enter

Start New Line Before Current

Control+Alt+Enter

Delete Line

Control+Y

Join Lines

Control+Shift+J

Duplicate Line or Selection

Control+D

Toggle Case

Control+Shift+U

Scratch File

Control+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+,

Caret navigation

Move Caret to Previous Word

Control+ArrowLeft

Move Caret to Next Word

Control+ArrowRight

Move Caret to Line Start

Home

Move Caret to Line End

End

Move Caret to Matching Brace

Control+Shift+M

Move Caret to Code Block Start

Control+[

Move Caret to Code Block End

Control+]

Next Method

Alt+ArrowDown

Previous Method

Alt+ArrowUp

Move Caret to Page Top

Control+PageUp

Move Caret to Page Bottom

Control+PageDown

Page Up

PageUp

Page Down

PageDown

Move Caret to Text Start

Control+Home

Move Caret to Text End

Control+End

Select text

Select All

Control+A

Left with Selection

Shift+ArrowLeft

Right with Selection

Shift+ArrowRight

Move Caret to Previous Word with Selection

Control+Shift+ArrowLeft

Move Caret to Next Word with Selection

Control+Shift+ArrowRight

Move Caret to Line Start with Selection

Shift+Home

Move Caret to Line End with Selection

Shift+End

Up with Selection

Shift+ArrowUp

Down with Selection

Shift+ArrowDown

Move Caret to Code Block Start with Selection

Control+Shift+[

Move Caret to Code Block End with Selection

Control+Shift+]

Move Caret to Page Top with Selection

Control+Shift+PageUp

Move Caret to Page Bottom with Selection

Control+Shift+PageDown

Page Up with Selection

Shift+PageUp

Page Down with Selection

Shift+PageDown

Move Caret to Text Start with Selection

Control+Shift+Home

Move Caret to Text End with Selection

Control+Shift+End

Extend Selection

Control+W

Shrink Selection

Control+Shift+W

Code folding

Expand

Control+NumPad-+

Collapse

Control+NumPad--

Expand Recursively

Control+Alt+NumPad-+

Collapse Recursively

Control+Alt+NumPad--

Expand All

Control+Shift+NumPad-+

Collapse All

Control+Shift+NumPad--

Fold Selection

Control+.

Multiple carets and selection ranges

Coding assistance

Show Intention Actions

Alt+Enter

Basic Completion

Control+Space

Type-Matching Completion

Control+Shift+Space

Second Basic Completion

Control+Alt+Space

Complete Current Statement

Control+Shift+Enter

Reformat Code

Control+Alt+L

Parameter Info

Control+P

Quick Documentation

Control+Q

Move Statement Up

Control+Shift+ArrowUp

Move Statement Down

Control+Shift+ArrowDown

Move Element Left

Control+Alt+Shift+ArrowLeft

Move Statement Right

Control+Alt+Shift+ArrowRight

Move Line Up

Alt+Shift+ArrowUp

Move Line Down

Alt+Shift+ArrowDown

Comment with Line Comment

Control+/

Comment with Block Comment

Control+Shift+/

Surround With...

Control+Alt+T

Generate...

Alt+Insert

Context navigation

Next Method

Alt+ArrowDown

Previous Method

Alt+ArrowUp

Go to Line/Column...

Control+G

Switcher

Control+Tab

Select In...

Alt+F1

Recent Files

Control+E

Last Edit Location

Control+Shift+Backspace

Back

Control+Alt+ArrowLeft

Forward

Control+Alt+ArrowRight

Select Next Tab

Alt+ArrowRight

Select Previous Tab

Alt+ArrowLeft

Toggle Anonymous Bookmark

F11

Toggle Bookmark with Digit

Control+Shift+com.jetbrains.webhelp.shortcuttery.shortcuts.Key$Custom@301186b0

Toggle Bookmark with Mnemonic

Control+F11

Show All Bookmarks

Shift+F11

Go to Bookmark with Digit

Control+com.jetbrains.webhelp.shortcuttery.shortcuts.Key$Custom@7812bf3

Show Mnemonic Bookmarks

Control+Shift+F11

Show Bookmarks window

Alt+2

Show Structure window

Alt+7

Show Find window

Alt+3

Next Occurrence

Control+Alt+ArrowDown

Previous Occurrence

Control+Alt+ArrowUp

Find everything

Find Usages

Alt+F7

Go to Declaration or Usages

Control+B

Go to Type Declaration

Control+Shift+B

Show Usages

Control+Alt+F7

Go to Super Method

Control+U

Go to Implementation(s)

Control+Alt+B

Highlight Usages in File

Control+Shift+F7

Code analysis

Run and debug

Run Anything

Double Control

Run context configuration

Shift+F10

Run...

Alt+Shift+F10

Debug context configuration

Shift+F9

Debug...

Alt+Shift+F9

Attach to Process...

Control+Alt+F5

Stop

Control+F2

Resume Program

F9

Stop Background Processes...

Control+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

Control+Alt+F9

Show Execution Point

Alt+F10

Evaluate Expression...

Alt+F8

Quick Evaluate Expression

Control+Alt+F8

Toggle Line Breakpoint

Control+F8

Toggle Temporary Line Breakpoint

Control+Alt+Shift+F8

View Breakpoints...

Control+Shift+F8

Edit Breakpoint

Control+Shift+F8

Show Run window

Alt+4

Show Debug window

Alt+5

Show Services window

Alt+8

Refactorings

Refactor This...

Control+Alt+Shift+T

Rename...

Shift+F6

Change Signature...

Control+F6

Inline...

Control+Alt+N

Move...

F6

Extract Method...

Control+Alt+M

Introduce Field...

Control+Alt+F

Introduce Parameter...

Control+Alt+P

Introduce Variable...

Control+Alt+V

Safe Delete...

Alt+Delete

Global VCS actions

VCS Operations Popup...

Alt+`

Commit...

Command K

Update Project

Command T

Rollback

Control+Alt+Z

Push...

Command Shift K

Next Change

Control+Alt+Shift+ArrowDown

Previous Change

Control+Alt+Shift+ArrowUp

Show Version Control window

Alt+9

Show Commit window

Alt+0

Differences viewer

Show Diff

Control+D

Compare Files

Control+D

Next Difference

F7

Previous Difference

Shift+F7

Accept Left Side

Control+Alt+R

Accept Right Side

Control+Alt+A

Select Opposite Diff Pane

Control+Shift+Tab

Show Diff Settings Popup...

Control+Shift+D

Tool windows

Hide Active Tool Window

Shift+Escape

Hide All Tool Windows

Control+Shift+F12

Jump to Last Tool Window

F12

Stretch to Left

Control+Alt+Shift+ArrowLeft

Stretch to Right

Control+Alt+Shift+ArrowRight

Stretch to Top

Control+Alt+Shift+ArrowUp

Stretch to Bottom

Control+Alt+Shift+ArrowDown

Show Project window

Alt+1

Show Bookmarks window

Alt+2

Show Find window

Alt+3

Show Run window

Alt+4

Show Debug window

Alt+5

Show Problems window

Alt+6

Show Structure window

Alt+7

Show Services window

Alt+8

Show Version Control window

Alt+9

Show Commit window

Alt+0

Show Terminal window

Alt+F12

Last modified: 09 June 2021