PyCharm 2018.2

Refactoring

Turn the selected code fragment into a method.

Ctrl + Alt + M

All hotkeys for PyCharm 2018.2

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

Ctrl + /

Advanced editing
Comment/uncomment code with block comments.

Ctrl + ↑   Shift + /

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

Ctrl + Q

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

Alt + Mouse right click

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

Ctrl + ↑   Shift + Alt + H

Advanced editing
Show parameters of the method call at the caret.

Ctrl + P

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

Alt + Q

Advanced editing
Show an error or warning description at the caret.

Ctrl + F1

Advanced editing
Open browser with the documentation for the selected item.

↑   Shift + F1

Advanced editing
Override base class methods in the current class.

Ctrl + O

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

Ctrl + Alt + T

Advanced editing
Code completion for any class, method or variable.

Ctrl + Space

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

Alt + /

Advanced editing
Code Completion filtering the lookup list basing on expected type.

Ctrl + ↑   Shift + Space

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

Ctrl + J

Advanced editing
Surround the selection with one of the templates.

Ctrl + Alt + J

Basic editing
Move the selected block to the next indentation level.

⭾ Tab

Basic editing
Move the selected block to the previous indentation level.

↑   Shift + ⭾ Tab

Basic editing
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.

⤶ Enter

Basic editing
In other views: remove selected items

Del

Basic editing
Delete a character to the left of the caret.

⬅ Backspace

Basic editing
Undo last operation.

Ctrl + Z

Basic editing
Redo last undone operation.

Ctrl + ↑   Shift + Z

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

Ctrl + X

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

Ctrl + C

Basic editing
Paste from the Clipboard to the caret location.

Ctrl + V

Basic editing
Paste selected entry from the Clipboard to the caret location.

Ctrl + ↑   Shift + V

Basic editing
Move the caret one line up.

Basic editing
Move the caret one line up selecting the text.

↑   Shift +

Basic editing
Move the caret one line down.

Basic editing
Move the caret one line down selecting the text.

↑   Shift +

Basic editing
Move the caret one character to the left.

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

↑   Shift +

Basic editing
Move the caret one character to the right.

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

↑   Shift +

Basic editing
Move the caret down to the page bottom.

Ctrl + Page Down

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

Ctrl + Shift + Page Down

Basic editing
Move the caret up to the page top.

Ctrl + Page Up

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

Ctrl + Shift + Page Up

Basic editing
Move the caret one page down.

Page Down

Basic editing
Move the caret one page down, selecting the text.

Shift + Page Down

Basic editing
Move the caret one page up.

Page Up

Basic editing
Move the caret one page up, selecting the text.

Shift + Page Up

Basic editing
Scroll the text one line down.

Ctrl +

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

Ctrl + M

Basic editing
Scroll the text one line up.

Ctrl +

Basic editing
Move the caret to the end of line.

End

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

↑   Shift + End

Basic editing
Move the caret to the beginning of line.

Home

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

↑   Shift + Home

Basic editing
Move the caret to the next word.

Ctrl +

Basic editing
Move the caret to the next word, selecting it.

Ctrl + ↑   Shift +

Basic editing
Move the caret to the previous word.

Ctrl +

Basic editing
Move the caret to the previous word, selecting it.

Ctrl + ↑   Shift +

Basic editing
Move the caret to the end of text.

Ctrl + End

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

Ctrl + ↑   Shift + End

Basic editing
Move the caret to the beginning of text.

Ctrl + Home

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

Ctrl + ↑   Shift + Home

Basic editing
Select the entire text opened in the editor.

Ctrl + A

Basic editing
Delete the line where the caret is currently located.

Ctrl + Y

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

Ctrl + Del

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

Ctrl + ⬅ Backspace

Basic editing
Toggle insert/overwrite modes.

Insert

Basic editing
Duplicate selected block or the line at the caret.

Ctrl + D

Basic editing
Toggle case of the selected text block.

Ctrl + ↑   Shift + U

Navigation in source code
Navigate to the end of the current code block.

Ctrl + ]

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

Ctrl + ↑   Shift + ]

Navigation in source code
Navigate to the start of the current code block.

Ctrl + [

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

Ctrl + ↑   Shift + [

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

↑   Shift + ⤶ Enter

Basic editing
Start a new line before the current one.

Ctrl + Alt + ⤶ Enter

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

Ctrl + ↑   Shift + J

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

Ctrl + ⤶ Enter

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

Ctrl + W

Basic editing
Remove sequentially the selection made by the action.

Ctrl + ↑   Shift + W

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

Ctrl + Alt + I

Navigation Between IDE Components
Expand all nodes in a tree view.

Ctrl + Num +

Navigation Between IDE Components
Collapse all nodes in a tree view.

Ctrl + Num -

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

Ctrl + Alt + Num +

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

Ctrl + Alt + Num -

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

Ctrl + ↑   Shift + Num +

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

Ctrl + ↑   Shift + Num -

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

Ctrl + Num * then 1

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

Ctrl + Num * then 2

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

Ctrl + Num * then 3

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

Ctrl + Num * then 4

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

Ctrl + Num * then 5

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

Ctrl + ↑   Shift + Num * then 1

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

Ctrl + ↑   Shift + Num * then 2

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

Ctrl + ↑   Shift + Num * then 3

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

Ctrl + ↑   Shift + Num * then 4

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

Ctrl + ↑   Shift + Num * then 5

Code folding
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"

Ctrl + .

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

↑   Shift + F10

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

↑   Shift + Alt + F10

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

Ctrl + F5

Running and debugging
Debug a program.

↑   Shift + F9

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

↑   Shift + Alt + F9

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

F8

Navigation Between IDE Components
Navigate to the next difference in view.

F7

Navigation Between IDE Components
Navigate to the previous difference in view.

↑   Shift + F7

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

↑   Shift + F8

Running and debugging
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 + F8

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

↑   Shift + Alt + F7

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

Alt + F9

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

Ctrl + Alt + F9

Running and debugging
Resume program execution.

F9

Navigation in source code
Navigate to the previous found error/warning.

↑   Shift + F2

Running and debugging
Evaluate an arbitrary expression.

Alt + F8

Running and debugging
Evaluate an arbitrary expression without calling Evaluate Expression dialog.

Ctrl + Alt + F8

Running and debugging
Toggle breakpoint at the current line.

Ctrl + F8

Running and debugging
View/manage all breakpoints.

Ctrl + ↑   Shift + F8

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

Ctrl + ↑   Shift + F4

General
Close an active editor.

Ctrl + F4

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

F4

General
In a tool window: return focus to the editor.

Esc

General
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 + O

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

Alt + Insert

General
Save all files and settings.

Ctrl + S

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

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

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

Alt + ⤶ Enter

General
Detect all externally changed files and reload them from disk.

Ctrl + Alt + Y

Search
Initiate text search.

Ctrl + F

Search
Initiate text search and replace.

Ctrl + R

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

F3

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

↑   Shift + F3

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

Ctrl + F3

Search
Initiate search for a text string in the specified scope.

Ctrl + ↑   Shift + F

Search
Initiate search and replace in the specified scope.

Ctrl + ↑   Shift + R

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

Alt + F7

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

Ctrl + F7

Search
Highlight usages of a symbol at caret.

Ctrl + ↑   Shift + F7

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

Ctrl + Alt + F7

Search
Find an action, bypassing menus. See Finding Actions.

Ctrl + ↑   Shift + A

Navigation between bookmarks
Navigate to a numbered bookmark with the corresponding number.

Ctrl + 1 - 9

Navigation between bookmarks
Turn anonymous bookmark on or off.

F11

Navigation between bookmarks
Turn bookmark with mnemonic on or off.

Ctrl + F11

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

↑   Shift + F11

Navigation in source code
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.

Alt + F1

Navigation Between IDE Components
Navigate between files opened in the editor, and tool windows.

Ctrl + ⭾ Tab

Navigation Between IDE Components
Open a tool window with the specified number.

Alt + 1 - 9

Navigation Between IDE Components
Hide the currently active tool window.

↑   Shift + Esc

Navigation Between IDE Components
Activate the last focused tool window.

F12

Navigation in source code
Display the Structure pop-up window for quick navigation through the current file.

Ctrl + F12

Navigation in source code
Show the list of recently opened files.

Ctrl + E

Navigation in source code
Show the list of recently updated files .

Ctrl + ↑   Shift + E

Navigation in source code
Browse hierarchy for the selected class class.

Ctrl + H

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

Ctrl + N

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

Ctrl + ↑   Shift + N

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

Ctrl + G

Navigation in source code
Navigate to declaration of a symbol at caret.

Ctrl + B

Navigation in source code
Navigate to implementation of the item at caret.

Ctrl + Alt + B

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

Ctrl + ↑   Shift + B

Navigation in source code
Navigate to a super method declaration of a method under the caret.

Ctrl + U

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

Ctrl + ↑   Shift + T

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

Ctrl + Alt + Home

Navigation in source code
Navigate to the next method declaration in the active editor tab.

Alt +

Navigation in source code
Navigate to the previous method declaration in the active editor tab.

Alt +

Navigation in source code
Undo last navigation operation.

Ctrl + Alt +

Navigation in source code
Redo last undone navigation operation.

Ctrl + Alt +

Navigation in source code
Navigate to a previous found item.

Ctrl + Alt +

Navigation in source code
Navigate to a next found item.

Ctrl + Alt +

Navigation in source code
Move through the most recent change points.

Ctrl + ↑   Shift + ⬅ Backspace

Navigation in source code
Navigate to the next found error/warning.

F2

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

↑   Shift + F6

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

Ctrl + F6

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

F6

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

F5

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

Alt + Del

Refactoring
Turn the selected code fragment into a method.

Ctrl + Alt + M

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

Ctrl + Alt + V

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

Ctrl + Alt + F

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

Ctrl + Alt + C

Refactoring
Turn the selected expression into a new method parameter.

Ctrl + Alt + P

Refactoring
Inline the selected method or variable.

Ctrl + Alt + N

Similar combinations for other applications


Microsoft Outlook 2010 (Windows)
Mark for Download
Messages in Main View - Message List and Single Messages

Ctrl + Alt + M


Thunderbird (Windows)
Move to previous folder
Mark, Delete and Move Message

Ctrl + Alt + M


Microsoft OneNote 2010 (Windows)
Move or copy the current page.
Managing Pages, Notebooks and Sections

ctrl + alt + m


Thunderbird (Linux)
Move to previous folder
Mark, Delete and Move Message

Ctrl + Alt + M


Microsoft Outlook 2010 (Windows)
Mark for Download
Messages in Compose View - Message List and Single Messages

Ctrl + Alt + M


Google Docs (Windows)
Insert comment
Comment View

Ctrl + Alt + M


Microsoft Outlook 2010 (Windows)
Mark for Download
Calendar Shortcuts - Message List and Single Messages

Ctrl + Alt + M


MyLifeOrganized (Windows)
Toggles Manual sort on and off
Managing Tasks

Ctrl + Alt + M


Oracle SQL Developer 4 (Windows)
Maximize Toggle
Navigate

Ctrl + Alt + M


IntelliJ (Linux)
Extract Method
Editing

Ctrl + Alt + M


IntelliJ (Windows)
Extract Method
Editing

Ctrl + Alt + M


Pro Tools (Windows)
Narrow mix
View Menu

Ctrl + Alt + M


Comsol 5 (Windows)
Go to Model Builder
Model Tree

Ctrl + Alt + M


Comsol 5 (Linux)
Go to Model Builder
Model Tree

Ctrl + Alt + M


Amazon Music Player (Windows)
Switch to Mini Player
13 Shortcuts for Amazon Music Player (Windows)

Ctrl + Alt + M


Atom (text editor) 1.0 (Linux)
Select code inside matching brackets
Editing Words and Brackets

Ctrl + Alt + m


Atom (text editor) 1.0 (Windows)
Select code inside matching brackets
Editing Words and Brackets

Ctrl + Alt + M


Microsoft OneNote 2016 (Windows)
Move or copy current page
Manage Pages, Notebooks and Sections

Ctrl + Alt + M


Microsoft Outlook 2016 (Windows)
Mark for Download
Mail

Ctrl + Alt + M


Adobe Premiere CC (Windows)
Clear current marker
Marker Operation

Ctrl + Alt + M


InDesign CC (Windows)
Drop Shadow
Object Menu shortcuts

Ctrl + Alt + M


Zoho Writer (Windows)
To Create Comment
Format Tab

Ctrl + Alt + M


CyberLink PhotoDirector 8 (Windows)
Toggle mirror mode on/off
Workspace

Ctrl + Alt + M


JetBrains RubyMine (Windows)
Extract Method
Refactoring

Ctrl + Alt + M


JetBrains RubyMine (Linux)
Extract Method
Refactoring

Ctrl + Alt + M


JetBrains PyCharm (Windows)
Extract Method
Refactoring

Ctrl + Alt + M


Daz 3D Bryce 7 (Windows)
Edit 2D Pictures
Object

Ctrl + Alt + M


JetBrains PhpStorm (Windows)
Extract Method
Refactoring

Ctrl + Alt + M


Adobe Dreamweaver (Windows)
Merge Cells
Table

Ctrl + Alt + M


JetBrains PhpStorm (Linux)
Extract Method
Refactoring

Ctrl + Alt + M


Daz 3D Bryce 7 (Windows)
Picture Library
Palettes and Labs

Ctrl + Alt + M


Microsoft Teams (Windows)
Mute/Unmute Audio
Calling Shortcuts

Ctrl + Alt + M


Adobe ColdFusion Builder 2.0 (Windows)
Jump to Matching Tag
Navigation Shortcuts

Ctrl + Alt + M


Adobe Captivate 2017 (Windows)
Insert master slide
General and Miscellaneous Shortcuts

Ctrl + Alt + M


MediaMonkey (Windows)
Switch to Party Mode (toggle)
Standard Keyboard Shortcuts

Ctrl + Alt + M


DITA CMS (Windows)
Create Map
22 Shortcuts for DITA CMS (Windows)

Ctrl + Alt + M


VideoPad Video Editor (Windows)
Minimize all
Window

Ctrl + Alt + M


XYplorer (Windows)
Select by Selected Type(s)
General Shortcuts

Ctrl + Alt + M


Jetbrains CLion (Windows)
Extract Function
Refactoring

Ctrl + Alt + M


Siemens NX 11 (Windows)
Manufaturing
Application Menu

Ctrl + Alt + M


Pencil2D (Windows)
Export Movie
57 Shortcuts for Pencil2D (Windows)

Ctrl + Alt + M


MPS 2017 (Windows)
Turn the selected code fragment into a method
Refactoring

Ctrl + Alt + M


Delphi 10 (Windows)
Invoke Modules window
193 Shortcuts for Delphi 10 (Windows)

Ctrl + Alt + M


Sierra Chart (Windows)
Manage Chart Drawing Window
Tools Menu

Ctrl + Alt + M


Surfcam (Windows)
Toggle Mask ON and OFF
60 Shortcuts for Surfcam (Windows)

Ctrl + Alt + M


TurboCAD (Windows)
Switch to Model Space
171 Shortcuts for TurboCAD (Windows)

Ctrl + Alt + M


RStudio (Windows)
Commit changes
Git / SVN

Ctrl + Alt + M


Xyplorer
Select By Selected Type(s)
Edit Menu

Ctrl + Alt + M


Dropbox Paper
Add a comment
Editing

Ctrl + Alt + M


ChessBase 13
Enter training commentary
Board window

Ctrl + Alt + M


Ableton Live 9 (Windows)
Hide/Show Mixer
Showing and Hiding Results

Ctrl + Alt + M


Wordfast Pro (Windows)
Retrieve Selected Segment
100 Shortcuts for Wordfast Pro (Windows)

Ctrl + Alt + M


Vectorworks (Windows)
Move 3D
Modify Menu

Ctrl + Alt + M


Banner 9 (Windows, Mac)
Close Menu
Mac shortcuts

Ctrl + Alt + M


AVS Video Editor (Windows)
Mute
Preview Area

Ctrl + Alt + M


RStudio
Commit changes
Git / SVN

Ctrl + Alt + M


Ableton Live 10
Hide/Show Mixer
Showing and hiding views

Ctrl + Alt + M


SAP NetWeaver Business Client 5.0 for Desktop
Focus on Menu
General

Ctrl + Alt + M


Siemens NX
Manufacturing
Application menu

Ctrl + Alt + M


Zendesk Support
Open macro box
Tickets

Ctrl + Alt + M


Gravit Designer
Nested compound
Modify

Ctrl + Alt + M


PaintShop Pro 2018
Magnifier
Shortcuts with Ctrl + Alt

Ctrl + Alt + M


Adobe Premiere Pro (Windows)
Clear Current Marker
Marker

Ctrl + Alt + M


IntelliJ IDEA (Windows, Linux)
Extract method
Refactoring

Ctrl + Alt + M


Google Sheets (Android)
Insert/edit comment
Editing notes and comments

Ctrl + Alt + M


Google Sheets
Insert/edit comment
Edit notes and comments

Ctrl + Alt + M


REAPER
View: Toggle master track visible
Section: Main

Ctrl + Alt + M


Delphi
Invoke Modules window
General

Ctrl + Alt + M


MediaMonkey
Switch to party mode (toggle)
General

Ctrl + Alt + M


Outlook 2016 and Outlook 2013
Mark for download
Mail

Ctrl + Alt + M


Microsoft OneNote
Move or copy the current page
Work with notebooks and sections

Ctrl + Alt + M


Android Studio
Extract method
Refactoring

Ctrl + Alt + M


Microsoft Edge
Copy selected content into a web note
Newer shortcuts

Ctrl + Alt + M


Opera
Manage e-mail
Manager pages

Ctrl + Alt + M


Microsoft Outlook 2007 (Windows)
Mark for Download.
Shortcuts for Managing E-Mail

Ctrl + Alt + M


Figma
Use a mask
Transform

Ctrl + Alt + M