PyCharm 2018.2 Help

Ctrl

This section lists and describes the keyboard shortcuts that include the Ctrl key:

Ctrl+Alphanumeric keys

Shortcut

Function

Use this shortcut to...

Ctrl+A

Select All

Select the entire text in the active editor.

Ctrl+B

Navigate to Declaration

Navigate directly to an element's declaration from any usage.

Ctrl+C

Copy

Copy selected text to the Clipboard.

Ctrl+D

Duplicate Line or Block

Duplicate selected block or line at caret.

Ctrl+E

Recent Files
Recent find usages

Show the list of recently opened files.

When the Find tool window has the focus, use this shortcut to show the list of recent find usages results.

Ctrl+F

Find

Initiate text search in the editor.

Ctrl+G

Navigate to Line

Navigate the to a line with the specified number in the current file.

Ctrl+H

Type Hierarchy

Browse hierarchy for the selected class.

Ctrl+J

Insert Live Template

Show a pop-up list of Live Templates starting with a specified prefix.

Ctrl+M

Scroll to Center

Scroll a line at caret to the center of the screen.

Ctrl+N

Navigate to Class

Jump to a class in the project with the specified name.

Ctrl+O

Override Methods

Override base class methods in the current class.

Ctrl+P

Parameter Info

Show parameters of the method call at the caret.

Ctrl+Q
Alt+Mouse Button2

Quick documentation

Show a pop-up window with documentation for the symbol at caret.

In the Database tool window: show a pop-up window that displays the create table query for the database table at the caret and the first 10 rows of the table.

Ctrl+R

Replace

Call the Replace Text dialog box.

Ctrl+S

Save All

Save all files and settings.

Ctrl+U

Navigate to Super Method

Navigate to a super method declaration of a method at caret

Ctrl+V

Paste

Paste from the Clipboard.

Ctrl+W

Select Word at Caret

Successively select expanding blocks of text, starting from the word at caret. (Use this shortcut repeatedly to select expressions.)

Ctrl+X

Cut

Cut to the Clipboard.

Ctrl+Y

Delete Line at Caret

Delete a word starting from the current caret location up to the end of word.

Ctrl+Z

Undo

Undo last operation.

Ctrl+Shift+Z

Redo

Redo last undone operation.

Ctrl+Number

Navigate to bookmark

Navigate to a numbered bookmark with corresponding number.

Ctrl+Navigation keys

Shortcut

Function

Use this shortcut to...

Ctrl+Tab

Switcher

Navigate between the files opened in the editor, and tool windows.

Ctrl+Backspace

Delete to Word Start

Delete a word starting from the current caret location up to the word start.

Ctrl+Delete

Delete to Word End

Delete a word starting from the current caret location up to the word end.

Ctrl+End

Move to Text End

Move the caret to the end of text.

Ctrl+Enter

Split Line or Open Item

Depending on the context:
  • In the editor: Intelligently split the current line into 2 lines, shifting quotes, etc. as necessary.

  • In the Tool Windows: Open an Editor tab or tabs for the selected item or items, respectively.

Ctrl+Home

Move to Text Start

Jump to the beginning of the text.

Ctrl+C

Copy

Copy a current line or a selected code block to the Clipboard.

Ctrl+Space

Basic Code Completion

Complete code for any class, method or variable.

Ctrl+Page Down

Navigate to Page Bottom

Move the caret down to the page bottom.

Ctrl+Page Up

Navigate to Page Top

Move the caret up to the page top.

Ctrl+Down

Scroll Down

Move line at caret one down, preserving syntactical correctness.

Ctrl+Left

Move to Previous Word

Move the caret to the previous word.

Ctrl+Right

Move to Next Word

Move the caret to the next word.

Ctrl+Up
Ctrl+Shift+Up

Scroll Up

Move line at caret one up, preserving syntactical correctness.

Ctrl+Ctrl+Home/End

Select text from the caret position to the beginning/end of the current line.

Ctrl+Symbol keys

Shortcut

Function

Use this shortcut to...

Ctrl+[

Move to Code Block Start

Move the caret to the beginning of the current code block, highlighting its limits.

Ctrl+]

Move to Code Block End

Move the caret to the end of the current code block, highlighting its limits.

Ctrl+/
Ctrl+Numpad/

Comment with Line Comment

Comment/uncomment current line or selected block with line comments.

Ctrl+=
Ctrl+NumPad Plus

Expand All

Expand all folding blocks.

Ctrl+NumPad -

Collapse All

Collapse all folding blocks.

Ctrl+Numpad keys

Shortcut

Function

Use this shortcut to...

Ctrl+Numpad/
Ctrl+/

Comment with Line Comment

Comment/uncomment current line or selected block with line comments.

Ctrl+NumPad Plus
Ctrl+=

Expand All

Expand all folding blocks.

Ctrl+NumPad -

Collapse All

Collapse all folding blocks.

Ctrl+Function (F) keys

Shortcut

Function

Use this shortcut to...

Ctrl+F1

Error Description

Show an error or warning description at the caret.

Ctrl+F3

Find Word at Caret

Search in the editor for the word where the caret is currently located.

Ctrl+F6

Change Method Signature

Refactor a selected method signature and update all references.

Ctrl+F7

Find Usages in File

Initiate search for usages.

Ctrl+F8

Toggle Breakpoint

Toggle breakpoint at caret.

Ctrl+F9

Make Project

Compile all modified and dependent files in a project.

Ctrl+F11

Toggle Bookmark with mnemonic.

Turn bookmark with mnemonic on or off.

Ctrl+F12

File Structure Pop-up

Show the current file structure in the File Structure pop-up window for quick navigation.

Last modified: 12 October 2018

See Also