PyCharm keyboard shortcuts for Windows, Linux and Mac

PyCharm 2026.2 keys from JetBrains' keymap reference, with Windows and Linux bindings in the left column and macOS in the right. Rows the reference leaves out, such as Go to Class, Optimize Imports, the hierarchies, Jupyter cell keys and sending code to the Python console, come from topic pages of the same help; keymaps modelled on other editors, such as Emacs, are not covered. Learn Alt + Enter first: on an unresolved name it offers to add the import.

228 shortcuts in 16 sections. Checked row by row against JetBrains on . Edited by Jay.

General 10

PyCharm's help offers its printable default keymap as a single card for Windows and Linux, which is why the first column carries both labels. Keymaps for GNOME and KDE come as plugins and are not listed here.

PyCharm treats all of these as starting points: on the Keymap page of its settings you can rebind any default and attach a key to actions that ship without one.

ActionWindows / LinuxMac
Search EverywhereTap Shift twice to open one box that finds files, classes, symbols, actions and settings.ShiftthenShiftShiftthenShift
Find ActionLooks up any IDE command by name, including ones that have no menu entry or key assigned.Ctrl+Shift+ACmd+Shift+A
Open SettingsOpens the IDE settings dialog, where the Keymap page lists and reassigns every binding.Ctrl+Alt+SCmd+,
Run AnythingTap Ctrl twice for a popup that launches run configurations and command-line tools.CtrlthenCtrlCtrlthenCtrl
Save AllWrites every modified file to disk in one step.Ctrl+SCmd+S
New file in current directoryCreates a new item in the folder of the file you are editing.Ctrl+Alt+InsertCtrl+Option+N
New scratch fileStarts a throwaway file that lives outside the project, handy for trying a snippet.Ctrl+Alt+Shift+InsertCmd+Shift+N
Increase editor font sizeEnlarges the code font in every open editor rather than only the active tab.Alt+Shift+.Ctrl+Shift+.
Decrease editor font sizeShrinks the code font across every open editor at once.Alt+Shift+,Ctrl+Shift+,
SwitcherKeep Ctrl held and press Tab again to step through open files and tool windows.Ctrl+TabCtrl+Tab

Editing code 26

ActionWindows / LinuxMac
CutCtrl+XCmd+X
CopyCtrl+CCmd+C
PasteCtrl+VCmd+V
Paste as Plain TextInserts the clipboard text without the formatting adjustments a normal paste applies.Ctrl+Alt+Shift+VCmd+Option+Shift+V
Paste from HistoryOpens a list of earlier clipboard entries so an older copy can be pasted.Ctrl+Shift+VCmd+Shift+V
Copy PathsPuts the path of the current file on the clipboard.Ctrl+Shift+CCmd+Shift+C
Copy ReferenceCopies a reference to the symbol or line at the caret instead of its text.Ctrl+Alt+Shift+CCmd+Option+Shift+C
UndoCtrl+ZCmd+Z
RedoOn macOS and Windows alike this is the Undo key with Shift added.Ctrl+Shift+ZCmd+Shift+Z
Indent SelectionShifts the selected lines one indent level to the right.TabTab
Unindent Line or SelectionPulls the current line or the selected lines back one indent level.Shift+TabShift+Tab
Auto-Indent LinesFixes the indentation of the current line or selection without reformatting the rest.Ctrl+Alt+ICtrl+Option+I
Start New LineOpens a fresh line below from anywhere in the current one, without splitting it.Shift+EnterShift+Return
Start new line aboveOpens a fresh line above the caret's line and moves the caret there.Ctrl+Alt+EnterCmd+Option+Return
Delete LineRemoves the whole line at the caret; the macOS key is Cmd with Backspace.Ctrl+YCmd+Backspace
Join LinesMerges the line below into the current one.Ctrl+Shift+JCtrl+Shift+J
Duplicate Line or SelectionCopies the current line, or the selected block, directly below itself.Ctrl+DCmd+D
Toggle CaseSwitches the selected text between upper and lower case.Ctrl+Shift+UCmd+Shift+U
Move Statement UpCarries the whole statement at the caret above the previous one.Ctrl+Shift+UpCmd+Shift+Up
Move Statement DownCarries the whole statement at the caret below the next one.Ctrl+Shift+DownCmd+Shift+Down
Move Element LeftSwaps the element at the caret, such as a call argument, with its left neighbour.Ctrl+Alt+Shift+LeftCmd+Option+Shift+Left
Move Element RightSwaps the element at the caret with its right neighbour; the vendor table labels this row Move Statement Right.Ctrl+Alt+Shift+RightCmd+Option+Shift+Right
Move Line UpShifts just the current line up one row, regardless of statement boundaries.Alt+Shift+UpOption+Shift+Up
Move Line DownShifts just the current line down one row, regardless of statement boundaries.Alt+Shift+DownOption+Shift+Down
Toggle line commentAdds or removes the comment marker on the current line or on each selected line.Ctrl+/Cmd+/
Toggle block commentWraps the selection in a block comment; macOS swaps Shift for Option here.Ctrl+Shift+/Cmd+Option+/

Code completion and assistance 15

ActionWindows / LinuxMac
Show Intention ActionsLists quick-fixes for a highlighted problem and other context actions at the caret.Alt+EnterOption+Return
Basic CompletionSuggests names valid at the caret; macOS keeps Ctrl for this one rather than Cmd.Ctrl+SpaceCtrl+Space
Type-Matching CompletionNarrows the suggestion list to items of the type expected at the caret.Ctrl+Shift+SpaceCtrl+Shift+Space
Second Basic CompletionRuns completion a second time to widen the list beyond the first set of suggestions.Ctrl+Alt+SpaceCtrl+Option+Space
Complete Current StatementFinishes the statement being typed, adding the missing closing parts, and moves on.Ctrl+Shift+EnterCmd+Shift+Return
Parameter InfoShows the parameters accepted by the call at the caret in a small popup.Ctrl+PCmd+P
Quick DocumentationPops up the documentation of the symbol at the caret; on macOS the key is plain F1.Ctrl+QF1
Quick DefinitionShows the source of the symbol at the caret in a popup, without leaving the current file.Ctrl+Shift+IOption+Space
External DocumentationSends you to the online docs of the element under the caret, in the web browser.Shift+F1Shift+F1
Context infoDisplays the header of the enclosing function or class once it has scrolled out of view.Alt+QCtrl+Shift+Q
Type InfoReports the inferred type of the expression or variable under the caret.Ctrl+Shift+PCtrl+Shift+P
GenerateOpens a menu of code that can be created for the current class or file.Alt+InsertCmd+N
Surround WithWraps the selected code in a construct picked from a popup list.Ctrl+Alt+TCmd+Option+T
Reformat CodeApplies the project's code style settings to the selection or the whole file.Ctrl+Alt+LCmd+Option+L
Optimize ImportsRemoves unused import statements from the file and orders the remaining ones by the code style rules.Ctrl+Alt+OCtrl+Option+O

Caret movement 13

ActionWindows / LinuxMac
Caret to previous wordCtrl+LeftOption+Left
Caret to next wordCtrl+RightOption+Right
Caret to line startHome on a PC keyboard; a Mac uses Cmd with the Left arrow.HomeCmd+Left
Caret to line endEnd on a PC keyboard; a Mac uses Cmd with the Right arrow.EndCmd+Right
Caret to matching braceJumps between the opening and closing bracket of the pair at the caret.Ctrl+Shift+MCtrl+M
Jump to code block startJumps to the beginning of the block that encloses the caret.Ctrl+[Cmd+Option+[
Jump to code block endJumps to the last line of the block that encloses the caret.Ctrl+]Cmd+Option+]
Caret to page topPuts the caret on the first visible line without scrolling the editor.Ctrl+Page UpCmd+Page Up
Caret to page bottomPuts the caret on the last visible line without scrolling the editor.Ctrl+Page DownCmd+Page Down
Page UpPage UpPage Up
Page DownPage DownPage Down
Caret to start of fileJumps to the very first character of the document.Ctrl+HomeCmd+Home
Caret to end of fileJumps past the very last character of the document.Ctrl+EndCmd+End

Selecting text 19

ActionWindows / LinuxMac
Select AllCtrl+ACmd+A
Extend selection leftShift+LeftShift+Left
Extend selection rightShift+RightShift+Right
Select to previous wordCtrl+Shift+LeftOption+Shift+Left
Select to next wordCtrl+Shift+RightOption+Shift+Right
Select to line startShift+HomeCmd+Shift+Left
Select to line endShift+EndCmd+Shift+Right
Extend selection upShift+UpShift+Up
Extend selection downShift+DownShift+Down
Select to code block startSelects from the caret back to the beginning of the enclosing block.Ctrl+Shift+[Cmd+Option+Shift+[
Select to code block endSelects from the caret forward to the last line of the enclosing block.Ctrl+Shift+]Cmd+Option+Shift+]
Select to page topSelects up to the first line visible in the editor.Ctrl+Shift+Page UpCmd+Shift+Page Up
Select to page bottomSelects down to the last line visible in the editor.Ctrl+Shift+Page DownCmd+Shift+Page Down
Select a page upShift+Page UpShift+Page Up
Select a page downShift+Page DownShift+Page Down
Select to start of fileCtrl+Shift+HomeCmd+Shift+Home
Select to end of fileCtrl+Shift+EndCmd+Shift+End
Extend SelectionEach press widens the selection to the next larger code construct around the caret.Ctrl+WOption+Up
Shrink SelectionSteps the selection back down to the smaller construct it grew from.Ctrl+Shift+WOption+Down

Code folding 7

ActionWindows / LinuxMac
ExpandUnfolds the collapsed region at the caret; the plus is the numeric keypad key.Ctrl+Num +Cmd+Num +
CollapseFolds the region at the caret; the minus is the numeric keypad key.Ctrl+Num -Cmd+Num -
Expand RecursivelyUnfolds the region at the caret together with every region nested inside it.Ctrl+Alt+Num +Cmd+Option+Num +
Collapse RecursivelyFolds the region at the caret together with every region nested inside it.Ctrl+Alt+Num -Cmd+Option+Num -
Expand AllUnfolds every collapsed region in the file.Ctrl+Shift+Num +Cmd+Shift+Num +
Collapse AllFolds every foldable region in the file.Ctrl+Shift+Num -Cmd+Shift+Num -
Fold SelectionTurns the selected lines into a custom folded region.Ctrl+.Cmd+.

Multiple carets 11

For Clone Caret Above or Below, tap Ctrl twice and do not release it after the second tap; the arrow you press next sets the direction. The macOS keymap uses the same gesture with Option.

ActionWindows / LinuxMac
Add or remove a caretHold the modifier and click to place another caret, or click an existing one to drop it.Alt+ClickOption+Click
Toggle Column Selection ModeSwitches the editor between normal selection and rectangular, column-wise selection.Alt+Shift+InsertCmd+Shift+8
Clone Caret AboveTap the modifier twice, keep it held on the second press, then press Up.CtrlthenCtrl+UpOptionthenOption+Up
Clone Caret BelowTap the modifier twice, keep it held on the second press, then press Down.CtrlthenCtrl+DownOptionthenOption+Down
Carets on every selected linePlaces one caret at the end of each line of the selection.Alt+Shift+GOption+Shift+G
Select next occurrenceSelects the next match of the word or selection and gives it its own caret.Alt+JCtrl+G
Select All OccurrencesSelects every match in the file at once, each with its own caret.Ctrl+Alt+Shift+JCmd+Ctrl+G
Deselect last occurrenceDrops the most recently added match from the multi-selection.Alt+Shift+JCtrl+Shift+G
Rectangular selection to clickMiddle-click to select the column block between the caret and the pointer.Alt+Shift+Middle-clickOption+Shift+Middle-click
Rectangular selection by draggingHold the modifiers and drag with the left button to mark a column block.Alt+Shift+ClickOption+Shift+Click
Add another rectangular selectionDragging with these modifiers keeps the existing column blocks and adds a new one.Ctrl+Alt+Shift+ClickCmd+Option+Shift+Click

Bookmarks 6

ActionWindows / LinuxMac
Toggle anonymous bookmarkAdds or removes an unnamed bookmark on the current line; macOS uses F3.F11F3
Toggle bookmark with digitSets or clears the numbered bookmark for the digit you press with the modifiers.Ctrl+Shift+0-9Ctrl+Shift+0-9
Toggle mnemonic bookmarkOpens a popup to pick the digit or letter that will identify the bookmark.Ctrl+F11Option+F3
Show all bookmarksOpens a popup listing every bookmark in the project.Shift+F11Cmd+F3
Go to numbered bookmarkHold Ctrl and press the bookmark's digit to jump to it.Ctrl+0-9Ctrl+0-9
Show Mnemonic BookmarksOpens a popup restricted to the bookmarks that carry a digit or letter.Ctrl+Shift+F11Cmd+Option+F3

Search and replace 7

ActionWindows / LinuxMac
FindSearches for text inside the current file.Ctrl+FCmd+F
Find NextMoves to the following match of the current search; macOS uses Cmd G.F3Cmd+G
Find PreviousMoves to the preceding match of the current search.Shift+F3Cmd+Shift+G
ReplaceOpens the search bar with a replacement field for the current file.Ctrl+RCmd+R
Find in FilesSearches text across the project or a chosen scope.Ctrl+Shift+FCmd+Shift+F
Replace in FilesFinds and replaces text across the project or a chosen scope.Ctrl+Shift+RCmd+Shift+R
Find word at caretJumps to the following occurrence of the word under the caret; the macOS keymap assigns no key.Ctrl+F3—

Code inspection 4

ActionWindows / LinuxMac
Error DescriptionShows the description of the error or warning at the caret.Ctrl+F1Cmd+F1
Next Highlighted ErrorMoves the caret to the following problem highlighted in the file.F2F2
Previous Highlighted ErrorMoves the caret back to the preceding problem highlighted in the file.Shift+F2Shift+F2
Run Inspection by NameAsks for an inspection name and runs just that check on a chosen scope.Ctrl+Alt+Shift+ICmd+Option+Shift+I

Running and debugging 26

ActionWindows / LinuxMac
RunStarts the selected run configuration; the vendor table names it the context configuration.Shift+F10Ctrl+R
Choose configuration and runOpens a popup of every run configuration to pick the one to launch.Alt+Shift+F10Ctrl+Option+R
RerunRestarts the program that is already running, using its current configuration.Ctrl+F5Cmd+R
DebugStarts the selected configuration under the debugger.Shift+F9Ctrl+D
Choose configuration and debugOpens a popup of every configuration to pick the one to debug.Alt+Shift+F9Ctrl+Option+D
Attach to ProcessConnects the debugger to a process that is already running.Ctrl+Alt+F5Option+Shift+F5
StopEnds the running or debugged program.Ctrl+F2Cmd+F2
Resume ProgramContinues execution until the next breakpoint is reached.F9Cmd+Option+R
Stop Background ProcessesLists the IDE's background tasks so one can be cancelled.Ctrl+Shift+F2Cmd+Shift+F2
Step OverExecutes the current line and stops at the next one, without entering calls.F8F8
Force Step OverSteps to the next line even when called code contains breakpoints.Alt+Shift+F8Option+Shift+F8
Step IntoEnters the function called on the current line.F7F7
Smart Step IntoLets you choose which call to enter when the line holds several.Shift+F7Shift+F7
Force Step IntoEnters a call even when stepping rules would normally skip it.Alt+Shift+F7Option+Shift+F7
Step OutFinishes the current function and stops in its caller.Shift+F8Shift+F8
Run to CursorContinues execution and suspends at the line where the caret is.Alt+F9Option+F9
Force Run to CursorContinues to the caret line and ignores breakpoints on the way.Ctrl+Alt+F9Cmd+Option+F9
Show Execution PointBrings the editor back to the line where the program is suspended.Alt+F10Option+F10
Evaluate ExpressionOpens a dialog to compute any expression in the suspended program's context.Alt+F8Option+F8
Quick Evaluate ExpressionShows the value of the selected expression in a popup, skipping the dialog.Ctrl+Alt+F8Cmd+Option+F8
Toggle Line BreakpointSets or removes a breakpoint on the line at the caret.Ctrl+F8Cmd+F8
Toggle temporary breakpointSets a breakpoint that is removed automatically after it is hit once.Ctrl+Alt+Shift+F8Cmd+Option+Shift+F8
View BreakpointsOpens the dialog that lists all breakpoints in the project with their options.Ctrl+Shift+F8Cmd+Shift+F8
Edit BreakpointSame key as View Breakpoints: on a breakpoint line it opens that breakpoint's properties.Ctrl+Shift+F8Cmd+Shift+F8
Build ProjectCtrl+F9Cmd+F9
RebuildCtrl+Shift+F9Cmd+Shift+F9

Refactoring 11

ActionWindows / LinuxMac
Refactor ThisPops up the refactorings that apply to the code at the caret.Ctrl+Alt+Shift+TCtrl+T
RenameRenames the symbol at the caret and updates its references.Shift+F6Shift+F6
Change SignatureEdits a function's name and parameters and adjusts its callers.Ctrl+F6Cmd+F6
InlineReplaces uses of a variable or function with its definition, the reverse of extracting.Ctrl+Alt+NCmd+Option+N
MoveRelocates the selected class, function or file and fixes the references to it.F6F6
Extract FunctionTurns the selected statements into a new function and calls it in their place.Ctrl+Alt+MCmd+Option+M
Introduce FieldStores the selected expression in a new instance attribute.Ctrl+Alt+FCmd+Option+F
Introduce ParameterTurns the selected expression into a new parameter of the enclosing function.Ctrl+Alt+PCmd+Option+P
Introduce VariableAssigns the selected expression to a new local variable.Ctrl+Alt+VCmd+Option+V
Extract ConstantReplaces the selected expression with a new named constant; the menu lists it under Extract/Introduce.Ctrl+Alt+CCmd+Option+C
Safe DeleteChecks for remaining usages before the symbol or file is removed.Alt+DeleteCmd+Delete

Version control 15

Ctrl + D depends on focus: in the editor it duplicates the line, in a list of changes it opens Show Diff, and in the Project tool window it runs Compare Files.

ActionWindows / LinuxMac
VCS Operations PopupShows a quick list of the version-control commands available for the project.Alt+`Ctrl+V
CommitOpens the Commit tool window with the changed files ready to check in.Ctrl+KCmd+K
Update ProjectFetches the remote changes and brings the local branch up to date.Ctrl+TCmd+T
RollbackDiscards local modifications in the selected files.Ctrl+Alt+ZCmd+Option+Z
PushOpens the dialog for sending local commits to the remote repository.Ctrl+Shift+KCmd+Shift+K
Next ChangeMoves the caret to the following modified block in the editor.Ctrl+Alt+Shift+DownCtrl+Option+Shift+Down
Previous ChangeMoves the caret back to the preceding modified block in the editor.Ctrl+Alt+Shift+UpCtrl+Option+Shift+Up
Show DiffIn a list of changes, opens the selected file in the diff viewer.Ctrl+DCmd+D
Compare FilesWith two files selected in the Project tool window, opens them side by side.Ctrl+DCmd+D
Next DifferenceIn the diff viewer, jumps to the following changed block.F7F7
Previous DifferenceIn the diff viewer, jumps back to the preceding changed block.Shift+F7Shift+F7
Accept Left SideIn the diff viewer, applies the left pane's version of the change.Ctrl+Alt+RCmd+Ctrl+Right
Accept Right SideIn the diff viewer, applies the right pane's version of the change.Ctrl+Alt+ACmd+Ctrl+Left
Select Opposite Diff PaneMoves keyboard focus to the other half of the diff viewer.Ctrl+Shift+TabCtrl+Shift+Tab
Diff viewer settingsOpens the viewer's popup with whitespace and highlighting options.Ctrl+Shift+DCmd+Shift+D

Tool windows 18

ActionWindows / LinuxMac
Hide Active Tool WindowCloses the tool window that has focus and returns to the editor.Shift+EscShift+Esc
Hide All Tool WindowsCollapses every panel so the editor fills the frame; press again to restore them.Ctrl+Shift+F12Cmd+Shift+F12
Focus last tool windowMoves focus from the editor to the tool window used most recently.F12F12
Stretch to LeftWidens or narrows a vertical tool window by moving its edge left.Ctrl+Alt+Shift+LeftCtrl+Option+Left
Stretch to RightWidens or narrows a vertical tool window by moving its edge right.Ctrl+Alt+Shift+RightCtrl+Option+Right
Stretch to TopResizes a horizontal tool window by moving its edge up.Ctrl+Alt+Shift+UpCtrl+Option+Up
Stretch to BottomResizes a horizontal tool window by moving its edge down.Ctrl+Alt+Shift+DownCtrl+Option+Down
Show Project windowOpens or focuses the project file tree.Alt+1Cmd+1
Show Bookmarks windowAlt+2Cmd+2
Show Find windowReopens the panel that holds the latest search and usage results.Alt+3Cmd+3
Show Run windowOpens the output panel of the running program.Alt+4Cmd+4
Show Debug windowOpens the debugger panel with frames and variables.Alt+5Cmd+5
Show Problems windowOpens the list of errors and warnings found by code analysis.Alt+6Cmd+6
Show Structure windowOpens the outline of the current file as a docked panel.Alt+7Cmd+7
Show Services windowAlt+8Cmd+8
Show Version Control windowAlt+9Cmd+9
Show Commit windowOpens the panel that lists changed files for the next check-in.Alt+0Cmd+0
Show Terminal windowOpens or focuses the built-in command-line panel.Alt+F12Option+F12

Notebooks and Python console 10

ActionWindows / LinuxMac
Run cellExecutes the Jupyter cell at the caret and leaves it in edit mode.Ctrl+EnterCtrl+Return
Run cell and select belowExecutes the cell, then moves focus to the next one: the key for stepping through a notebook.Shift+EnterShift+Return
Run all cellsDoes the same as the Run all button of the notebook toolbar.Ctrl+Alt+Shift+EnterCtrl+Option+Shift+Return
Edit modePuts the caret inside the selected notebook cell so its code can be changed.EnterReturn
Command modeLeaves the cell text so that single-letter keys act on whole notebook cells.EscEsc
Add cell aboveWorks in command mode only: inserts a new code cell before the selected one.AA
Copy cellA bare C copies the selected cell while the notebook is in command mode.CC
Paste cell belowInserts the copied cell after the current one; command mode only.VV
Paste cell aboveInserts the copied cell before the current one; command mode only.Shift+VShift+V
Run selection in Python consoleSends the selected code to the Python console; with nothing selected, the current line is sent.Alt+Shift+EOption+Shift+E

Notes

Imports and documentation

When a name is underlined as unresolved, Alt + Enter lists the fixes, Import class among them; the import statement goes into the imports section and the caret stays where you were typing. Ctrl + Alt + O drops unused imports and orders the rest by the code style's import rules, in the open file or, with a directory selected in the Project tool window, in all files of that directory. Ctrl + Q shows the docstring of the symbol at the caret, read according to PEP 257 once the project has a Python interpreter configured, and a second press docks it in the Documentation tool window. Shift + F1 opens the package's web documentation instead; PyCharm comes with documentation URLs for pandas, matplotlib, flask, PySide and several other libraries. With the macOS keymap the four keys are Option + Return, Ctrl + Option + O, F1 and Shift + F1.

Running scripts and the Python console

Shift + F10 runs the configuration picked in the Run widget, where choosing Current File runs the file open in the editor; while that program is running, the same key restarts it without pulling focus out of the editor. Alt + Shift + F10 opens a popup of every configuration in the project, and holding Shift there switches the choice from run to debug. For trying out a few lines, Alt + Shift + E executes the selection in the Python console, or the line at the caret when nothing is selected. Inside the console Ctrl + Space completes names and the Up and Down arrows page through earlier commands; Ctrl + F5 starts a fresh console process and Ctrl + F2 stops the current one, first with a SIGINT so the script can exit cleanly. On a Mac, run, pick-and-run and send-to-console are Ctrl + R, Ctrl + Option + R and Option + Shift + E.

Jupyter notebooks

A notebook has an edit mode and a command mode. Enter puts the caret into the selected cell; Esc returns to command mode, where single letters work on whole cells: A adds a code cell above, C copies the cell, V pastes it below and Shift + V above. Ctrl + Enter runs the cell and keeps you in it, Shift + Enter runs it and moves on to the next, and Ctrl + Alt + Shift + Enter runs every code cell; for a local notebook the Jupyter server starts on the first run, with no need to launch it beforehand. A few editor keys behave differently in a notebook: Ctrl + A selects the current cell, and all cells on a second press; in command mode Ctrl + Home and Ctrl + End jump to the first and last cell; and Ctrl + Alt + Down or Ctrl + Alt + Up moves to the next or previous Markdown cell that starts a section.

Finding your way around a Python project

Ctrl + N searches classes, Ctrl + Shift + N files and directories (snake_case abbreviations work), and Ctrl + Alt + Shift + N any symbol; inside the Search Everywhere window, Tab switches between those categories. Ctrl + F12 lists the classes and functions of the open file. On a class, Ctrl + H shows its parent and child classes in the Hierarchy tool window, and on a function Ctrl + Alt + H shows its callers or callees. Alt + F7 collects usages across the project, Ctrl + Alt + F7 shows them in a popup with the scope and the total count, and Ctrl + Alt + Shift + F7 asks for a scope first, such as Project Test Files.

Questions

What does Ctrl + P do in PyCharm?

It shows parameter info for the function call at the cursor (Cmd + P on a Mac). It does not open a file — press Shift twice for Search Everywhere or use Ctrl + Shift + N (Go to File) for that.

How do I add a missing import?

Put the caret on the unresolved name, press Alt + Enter (Option + Return on a Mac) and choose Import class. Imports that nothing uses any more are removed by Ctrl + Alt + O, which also orders the remaining ones.

Is there a shortcut that opens the Python console?

The help does not give one; it suggests binding your own: open Settings with Ctrl + Alt + S, go to Keymap and assign a key to Tools › Python or Debug Console. Sending code needs no setup: Alt + Shift + E runs the selection, or the line at the caret, in the console.

How do I run a Jupyter cell without moving to the next one?

Ctrl + Enter (Ctrl + Return on a Mac) runs the cell at the caret and leaves it in edit mode, so you can change it and run it again. Shift + Enter runs it and selects the cell below, and Ctrl + Alt + Shift + Enter runs every cell.

Can I switch to VS Code keybindings?

Settings › Keymap offers predefined keymaps modelled on other editors (the PyCharm help names Emacs as an example), and any binding can be changed individually. If the keymap you want is not in that list, the help says further keymaps install as plugins: open Plugins, switch to the Marketplace tab and search for keymap.

Sources and checks

9 more source pages

Every row on this page was matched to a line in the documentation above on . A binding that could not be found there is not listed.

Found a wrong or missing key? Tell us and it gets checked against the source. How we verify describes the process and its limits.