PyCharm 2018.2 keyboard shortcuts

PyCharm 2018.2

Zeynel Abidin Öztürk -
14 months ago
- Shortcuts
Ctrl + /

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

Ctrl + ↑   Shift + /

Comment/uncomment code with block comments.

Ctrl + Q

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

or Alt +
Ctrl + ↑   Shift + Alt + H

Show the Highlighting level pop-up window to configure highlighting in the current file.

Ctrl + P

Show parameters of the method call at the caret.

Alt + Q

Show the current method or class declaration when it is not visible.

Ctrl + F1

Show an error or warning description at the caret.

↑   Shift + F1

Open browser with the documentation for the selected item.

Ctrl + O

Override base class methods in the current class.

Ctrl + Alt + T

Surround selected code fragment with if, do, tags or other constructs.

Ctrl + Space

Code completion for any class, method or variable.

or Alt + /
Ctrl + ↑   Shift + Space

Code Completion filtering the lookup list basing on expected type.

Alt + /

Goes through the names of classes, methods, keywords and variables in the current visibility scope.

Ctrl + J

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

Ctrl + Alt + J

Surround the selection with one of the templates.

â­¾ Tab

In templates: move the caret to the next template variable.

↑   Shift + â­¾ Tab

In templates: move the caret to the previous template variable.

⤶ Enter

In a lookup list: select an item

⤶ Enter

In the editor: enter a new line and set the caret at its beginning. On pressing Enter, PyCharm adds backslash character to avoid syntactical errors.

â­¾ Tab

In the editor, with selection: indent selected lines.

â­¾ Tab

In the editor, without selection: insert a tab symbol (or corresponding number of space characters)

â­¾ Tab

In a lookup list, no code after the caret: select an item

â­¾ Tab

In a lookup list, some code after the caret: select an item and substitute the code after the caret with it.

Del

In the editor: delete selected symbol/block

Del

In a usage view: exclude a selected item

Del

In other views: remove selected items

⬅ Backspace

Delete a character to the left of the caret.

Ctrl + Z

Undo last operation.

Ctrl + ↑   Shift + Z

Redo last undone operation.

Ctrl + X

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

Ctrl + C

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

Ctrl + V

Paste from the Clipboard to the caret location.

Ctrl + ↑   Shift + V

Paste selected entry from the Clipboard to the caret location.

↑

Move the caret one line up.

↑   Shift + ↑

Move the caret one line up selecting the text.

↓

Move the caret one line down.

↑   Shift + ↓

Move the caret one line down selecting the text.

←

Move the caret one character to the left.

↑   Shift + ←

Move the caret one character to the left selecting the text.

→

Move the caret one character to the right.

↑   Shift + →

Move the caret one character to the right selecting the text.

Ctrl + Page Down

Move the caret down to the page bottom.

Ctrl + Shift + Page Down

Move the caret down to the page bottom, selecting the text.

Ctrl + Page Up

Move the caret up to the page top.

Ctrl + Shift + Page Up

Move the caret up to the page bottom, selecting the text.

Page Down

Move the caret one page down.

Shift + Page Down

Move the caret one page down, selecting the text.

Page Up

Move the caret one page up.

Shift + Page Up

Move the caret one page up, selecting the text.

Ctrl + ↓

Scroll the text one line down.

Ctrl + M

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

Ctrl + ↑

Scroll the text one line up.

End

Move the caret to the end of line.

↑   Shift + End

Move the caret to the end of line, selecting the text.

Home

Move the caret to the beginning of line.

↑   Shift + Home

Move the caret to the beginning of line, selecting the text.

Ctrl + →

Move the caret to the next word.

Ctrl + ↑   Shift + →

Move the caret to the next word, selecting it.

Ctrl + ←

Move the caret to the previous word.

Ctrl + ↑   Shift + ←

Move the caret to the previous word, selecting it.

Ctrl + End

Move the caret to the end of text.

Ctrl + ↑   Shift + End

Move the caret to the end of text, selecting it.

Ctrl + Home

Move the caret to the beginning of text.

Ctrl + ↑   Shift + Home

Move the caret to the beginning of text, selecting it.

Ctrl + A

Select the entire text opened in the editor.

Ctrl + Y

Delete the line where the caret is currently located.

Ctrl + Del

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

Ctrl + ⬅ Backspace

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

Insert

Toggle insert/overwrite modes.

Ctrl + D

Duplicate selected block or the line at the caret.

Ctrl + ↑   Shift + U

Toggle case of the selected text block.

Ctrl + ]

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

Ctrl + ↑   Shift + ]

Move the caret to the current code block end, selecting the code beginning from the initial caret location.

Ctrl + [

Move the caret to the current code block start, highlighting the block limits.

Ctrl + ↑   Shift + [

Move the caret to the current code block start, selecting the code beginning from the initial caret location.

↑   Shift + ⤶ Enter

Start a new line after the current one positioning the caret in accordance with the current indentation level.

Ctrl + Alt + ⤶ Enter

Start a new line before the current one.

Ctrl + ↑   Shift + J

Concatenate the selected lines into one or concatenate the line where the caret is currently located with the next line.

Ctrl + ⤶ Enter

Split the selected line at the point where the caret is located, leaving the caret at the end of the first line. This shortcut splits a line without adding a backslash

Ctrl + W

Select successively increasing code blocks starting from the current caret location.

Ctrl + ↑   Shift + W

Remove sequentially the selection made by the action.

â­¾ Tab

Move the selected block to the next indentation level.

↑   Shift + â­¾ Tab

Move the selected block to the previous indentation level.

Ctrl + Alt + I

Indent the current line or selected block according to the Code Style settings.

Ctrl + Num +

Expand the current collapsed fragment

Ctrl + Num -

Collapse the current folding region

Ctrl + Alt + Num +

Expand the current folded fragment and all the subordinate collapsed folding regions within that fragment

Ctrl + Alt + Num -

Collapse the current folding region and all the subordinate folding regions within it

Ctrl + ↑   Shift + Num +

Expand all collapsed fragments within the selection, or, if nothing is selected, expand all the collapsed fragments in the current file

Ctrl + ↑   Shift + Num -

Collapse all folding regions within the selection, or, if nothing is selected, collapse all the folding regions in the current file

Ctrl + Num * then 1

Expand the current fragment and all the nested fragments up to the specified level

or Ctrl + Num * then 2
or Ctrl + Num * then 3
or Ctrl + Num * then 4
or Ctrl + Num * then 5
Ctrl + ↑   Shift + Num * then 1

Expand all the collapsed fragments in the file up to the specified nesting level

or Ctrl + ↑   Shift + Num * then 2
or Ctrl + ↑   Shift + Num * then 3
or Ctrl + ↑   Shift + Num * then 4
or Ctrl + ↑   Shift + Num * then 5
Ctrl + .

Collapse the selected fragment and create a custom folding region for it to make it "foldable" / Expand the current fragment and remove the corresponding custom folding region to make the fragment "unfoldable"

↑   Shift + F10

Run a program.

↑   Shift + Alt + F10

Quickly select run/debug configuration and run or edit it.

Ctrl + F5

Repeat execution with the same settings, with the same tab of the Run tool window having the focus.

↑   Shift + F10

Repeat execution with the same settings, with the same tab of the editor having the focus.

↑   Shift + F9

Debug a program.

↑   Shift + Alt + F9

Quickly select run/debug configuration and debug or edit it.

F8

Step to the next line in the current file. See Stepping Through the Program.

F7

Step to the next executed line. See Stepping Through the Program.

↑   Shift + F7

Select the method to step in, if the current line contains multiple method call expressions. See Choosing a Method to Step Into.

↑   Shift + F8

Step to a first executed line after returning from the current method. See Stepping Through the Program.

↑   Shift + Alt + F8

Run until the next line in this method or file, skipping the methods referenced at the current execution point and ignoring breakpoints. See Stepping Through the Program.

↑   Shift + Alt + F7

Steps into the method called in the current execution point even if this method is to be skipped. See Stepping Through the Program.

Alt + F9

Run to the line where the caret is located. See Stepping Through the Program.

Ctrl + Alt + F9

Run to the line where the caret is located, ignoring breakpoints. See Stepping Through the Program.

F9

Resume program execution.

↑   Shift + F2

Terminate a debugging session.

Alt + F8

Evaluate an arbitrary expression.

Ctrl + Alt + F8

Evaluate an arbitrary expression without calling Evaluate Expression dialog.

Ctrl + F8

Toggle breakpoint at the current line.

Ctrl + ↑   Shift + F8

View/manage all breakpoints.

Ctrl + ↑   Shift + F4

Close an active tab in a tool window (for example, Find tool window).

Ctrl + F4

Close an active editor.

F4

Open an editor for the selected item or items and give focus to the last opened file.

Esc

In the editor: close pop-up windows, terminate search, or remove highlighting.

Esc

In a tool window: return focus to the editor.

Alt + O

Export contents of a tool window to a text file. This feature applies to the Version Control Tool Window, Messages Tool Window, and the other tool windows that provide the export button icons toolbarDecorator export svg on the window toolbar.

Alt + Insert

Create a new class, file or directory. See Populating Modules.

Ctrl + S

Save all files and settings.

Alt + →

When several tabs are open in the editor or a view, open the next tab to the right (or first tab if the current one is the last).

Alt + ←

When several tabs are open in the editor or a view, open the next tab to the left (or last tab if the current one is the first).

Alt + ⤶ Enter

Display intention actions (if any) for the code where the caret is currently located, or the selected GUI component in a form.

Ctrl + Alt + Y

Detect all externally changed files and reload them from disk.

Ctrl + ⤶ Enter

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

Ctrl + ⤶ Enter

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

Ctrl + F

Initiate text search.

Ctrl + R

Initiate text search and replace.

F3

Navigate to the next/previous occurrence of a selected word in the editor.

or ↑   Shift + F3
Ctrl + F3

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

Ctrl + F

Initiate text search.

Ctrl + ↑   Shift + F

Initiate search for a text string in the specified scope.

Ctrl + ↑   Shift + R

Initiate search and replace in the specified scope.

Alt + F7

Initiate search for usages of the selected symbol in the specified scope.

Ctrl + F7

Initiate search for usages of the selected symbol in the current file.

Ctrl + ↑   Shift + F7

Highlight usages of a symbol at caret.

Ctrl + Alt + F7

Show usages of a symbol at caret in a pop-up window. Use list of found usages to jump to the desired location

Ctrl + ↑   Shift + A

Find an action, bypassing menus. See Finding Actions.

Ctrl + 1 - 9

Navigate to a numbered bookmark with the corresponding number.

F11

Turn anonymous bookmark on or off.

Ctrl + F11

Turn bookmark with mnemonic on or off.

↑   Shift + F11

Open Bookmarks dialog to manage existing bookmarks and navigate between them.

  Views and windows
Alt + F1

Move focus from the current file, class, method or reference to a data source, to a view suggested in the Select Targetpop-up menu. Refer to Navigating Between IDE Components.

Ctrl + Num -

Collapse all nodes in a tree view.

Ctrl + Num +

Expand all nodes in a tree view.

Ctrl + â­¾ Tab

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

Alt + 1 - 9

Open a tool window with the specified number.

↑   Shift + Esc

Hide the currently active tool window.

F12

Activate the last focused tool window.

  Differences
F7

Navigate to the next difference in view.

↑   Shift + F7

Navigate to the previous difference in view.

Ctrl + F12

Display the Structure pop-up window for quick navigation through the current file.

Alt + F1

Move focus from the current file, class, method or reference to a data source table to a view suggested in the Select Target pop-up menu. See Navigating Between IDE Components.

Ctrl + E

Show the list of recently opened files.

Ctrl + ↑   Shift + E

Show the list of recently updated files.

Ctrl + H

Browse hierarchy for the selected class class.

Ctrl + N

Navigate directly to a class in project by specifying its name in a pop-up dialog box.

Ctrl + ↑   Shift + N

Navigate directly to a file in project by specifying its name in a pop-up dialog box.

Ctrl + E

Show the list of recently opened files.

Ctrl + ↑   Shift + E

Show the list of recently updated files .

Ctrl + G

Navigate to any line in the current file by specifying its number.

Ctrl + B

Navigate to declaration of a symbol at caret.

Ctrl + Alt + B

Navigate to implementation of the item at caret.

Ctrl + ↑   Shift + B

Navigate to a type declaration of a symbol at caret, the symbol being a variable or a method call.

Ctrl + U

Navigate to a super method declaration of a method under the caret.

Ctrl + ↑   Shift + T

Navigate to a test for the class at caret, if any, or navigate from a test to a test subject.

Ctrl + Alt + Home

Navigate between files with complicated relationships between them. For example, use this shortcut to navigate between views and templates

Alt + ↓

Navigate to the next method declaration in the active editor tab.

Alt + ↑

Navigate to the previous method declaration in the active editor tab.

Ctrl + [

Navigate to the start of the current code block.

Ctrl + ]

Navigate to the end of the current code block.

Ctrl + Alt + ←

Undo last navigation operation.

Ctrl + Alt + →

Redo last undone navigation operation.

Ctrl + Alt + ↑

Navigate to a previous found item.

Ctrl + Alt + ↓

Navigate to a next found item.

Ctrl + ↑   Shift + ⬅ Backspace

Move through the most recent change points.

F2

Navigate to the next found error/warning.

↑   Shift + F2

Navigate to the previous found error/warning.

↑   Shift + F6

Rename the selected file, class, field, method, etc. and change all references to it accordingly.

Ctrl + F6

Change the signature of the selected method and update all the corresponding method calls.

F6

Move the selected class, package or static member to another package or class and update all the corresponding references.

F5

Create a copy of the selected class, file or directory in the same or different directory or package.

Alt + Del

Delete the selected class, method or field checking its usages.

Ctrl + Alt + M

Turn the selected code fragment into a method.

Ctrl + Alt + V

Create a new variable and use the selected expression as its value.

Ctrl + Alt + F

Create a new field and use the selected expression as its value.

Ctrl + Alt + C

Create a new constant (static final field) and use the selected expression as its value.

Ctrl + Alt + P

Turn the selected expression into a new method parameter.

Ctrl + Alt + N

Inline the selected method or variable.

  Source: PyCharm help

Share this page on:

Program information

Program name: PyCharm 2018.2 PyCharm 2018.2 (Developer tools)

PyCharm is an integrated development environment (IDE) for the Python computer programming language. Developed by Czech firm JetBrains, PyCharm has features such as code analysis, graphical debugger, integrated unit tester. PyCharm works on Windows, macOS and Linux.

Web page: jetbrains.com/pycharm

Last update: 11 Nov 2019

Shortcut count: 201

How easy to press shortcuts: 76%

Platform detected: Windows or Linux (not macOS)

Similar programs


  1. Grand Theft Auto VGrand Theft Auto V
    78983   
  2. Keyboard symbolsKeyboard symbols
    58341    1
  3. The Sims 4The Sims 4
    43099    3
  4. Apex Legends (PC)Apex Legends (PC)
    42752   
  5. Euro Truck Simulator 2Euro Truck Simulator 2
    39731   
  6. DiscordDiscord
    38855   
More keyboard shortcuts...

Advertisement

Join our mailing list!

Your email is kept private and we don't spam.