PyCharm 3.4.0 Web Help

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

Ctrl+alphanumeric keys

Shortcut Function Use this shortcut to...
Ctrl+ACtrl+ACtrl+ACtrl+ACtrl+X, HCtrl+ACtrl+ACtrl+ACommand ACommand ACommand A Select All Select the entire text in the active editor.
Ctrl+B, Ctrl+Button1 Click or Button2 ClickCtrl+B, Ctrl+Button1 Click or Button2 ClickCtrl+B, Ctrl+Button1 Click or Button2 ClickCtrl+B, Ctrl+Button1 Click or Button2 ClickCtrl+Alt+G, Escape, Period, Alt+Period or Ctrl+Button1 ClickF12, Shift+F2, Ctrl+B, Ctrl+Button1 Click or Button2 ClickCtrl+B, Ctrl+Button1 Click or Button2 ClickF3 or Ctrl+Button1 ClickCommand B, Command Button1 Click or Button2 ClickCommand B, Command Button1 Click or Button2 ClickF3 or Control Button1 Click Navigate to Declaration Navigate directly to an element's declaration from any usage.
Ctrl+C or Ctrl+InsertCtrl+C or Ctrl+InsertCtrl+C or Ctrl+InsertCtrl+C or Ctrl+InsertCtrl+Insert, Alt+C or Escape, WCtrl+C or Ctrl+InsertCtrl+C or Ctrl+InsertCtrl+C or Ctrl+InsertCommand C or Command InsertCommand C or Command InsertCommand C or Command Insert Copy Copy selected text to the Clipboard.
Ctrl+DCtrl+DCtrl+DCtrl+DMeta+DCtrl+DCtrl+D, Ctrl+Shift+Down or Ctrl+Shift+UpCtrl+DCommand DCommand DCommand D Duplicate Line or Block Duplicate selected block or line at caret.
Ctrl+ECtrl+ECtrl+ECtrl+ECtrl+ECtrl+EShift+F4Ctrl+ECommand ECommand ECommand 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 or Alt+F3Ctrl+F or Shift+Alt+3Ctrl+F or Shift+Alt+3Ctrl+F or Alt+F3Ctrl+Alt+S, Alt+F3 or Ctrl+SCtrl+F or Alt+F3Ctrl+F or Alt+F3Ctrl+F or Alt+F3Command FCommand F or Alt F3Command F Find Initiate text search in the editor.
Ctrl+GCtrl+GCtrl+GCtrl+GAlt+GCtrl+GCtrl+GCtrl+LCommand LCommand GCommand L Navigate to Line Navigate the to a line with the specified number in the current file.
Ctrl+HCtrl+HCtrl+HCtrl+HCtrl+HAlt+HShift+Alt+F12F4Control HControl HF4 Type Hierarchy Browse hierarchy for the selected class.
Ctrl+JCtrl+JCtrl+JCtrl+JCtrl+JCtrl+JCtrl+JCtrl+Shift+Alt+JCommand JCommand JCommand J Insert Live Template Show a pop-up list of Live Templates starting with a specified prefix.
Ctrl+MCtrl+MCtrl+MCtrl+MCtrl+MCtrl+MCtrl+MCtrl+MEditorScrollToCenterEditorScrollToCenterEditorScrollToCenter Scroll to Center Scroll a line at caret to the center of the screen.
Ctrl+NCtrl+NCtrl+NCtrl+NShift+Alt+GCtrl+CommaCtrl+OCtrl+Shift+TCommand OCommand NShift Command T Navigate to Class Jump to a class in the project with the specified name.
Ctrl+OCtrl+OCtrl+OCtrl+OCtrl+OCtrl+Shift+OCtrl+OCtrl+OControl OCommand OControl O Override Methods Override base class methods in the current class.
Ctrl+PCtrl+PCtrl+PCtrl+PCtrl+PCtrl+PCtrl+PCtrl+PCommand PCommand PCommand P Parameter Info Show parameters of the method call at the caret.
Ctrl+Q or Alt+Button2 ClickCtrl+Q or Alt+Button2 ClickCtrl+Q or Alt+Button2 ClickCtrl+Q or Alt+Button2 ClickCtrl+Q or Alt+Button2 ClickCtrl+QCtrl+Q or Alt+Button2 ClickAlt+Button2 Click, Ctrl+Shift+Space or F2F1, Control J or Control Button2 ClickControl J or Control Button2 ClickAlt Button2 Click or F2
Alt+Mouse Button2
Quick documentation Show a pop-up window with documentation for the symbol at the caret.
Ctrl+RCtrl+RCtrl+RCtrl+RShift+Alt+5Ctrl+HCtrl+HCtrl+FCommand RCommand RCommand R Replace Call the Replace Text dialog box.
Ctrl+SCtrl+SCtrl+SCtrl+SCtrl+X, Ctrl+SCtrl+SCtrl+S or Ctrl+Shift+SCtrl+SCommand SCommand SCommand S Save All Save all files and settings.
Ctrl+UCtrl+UCtrl+UCtrl+UCtrl+UCtrl+UCtrl+Shift+PCtrl+UCommand UCommand UCommand U Navigate to Super Method Navigate to a super method declaration of a method at caret
Ctrl+V or Shift+InsertCtrl+V or Shift+InsertCtrl+V or Shift+InsertCtrl+V or Shift+InsertAlt+P, Shift+Insert or Ctrl+YCtrl+V or Shift+InsertCtrl+V or Shift+InsertCtrl+V or Shift+InsertCommand V or Shift InsertCommand V or Shift InsertCommand V or Shift Insert Paste Paste from the Clipboard.
Ctrl+WCtrl+WCtrl+WCtrl+WCtrl+Alt+WCtrl+WShift+Alt+PeriodShift+Alt+UpAlt UpCommand WControl Shift Up 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 or Shift+DeleteCtrl+X or Shift+DeleteCtrl+X or Shift+DeleteCtrl+X or Shift+DeleteShift+Delete or Alt+XCtrl+X or Shift+DeleteCtrl+X or Shift+DeleteCtrl+X or Shift+DeleteCommand X or Shift DeleteCommand X or Shift DeleteCommand X or Shift Delete Cut Cut to the Clipboard.
Ctrl+YCtrl+YCtrl+YCtrl+YCtrl+YCtrl+Shift+LCtrl+ECtrl+DCommand BackspaceCommand YCommand D Delete Line at Caret Delete a word starting from the current caret location up to the end of word.
Ctrl+Z or Alt+BackspaceCtrl+Z or Alt+BackspaceCtrl+Z or Alt+BackspaceCtrl+Z or Alt+BackspaceCtrl+Shift+Minus or Ctrl+SlashCtrl+ZCtrl+Z or Alt+BackspaceCtrl+ZCommand ZCommand ZCommand Z Undo Undo last operation.
Ctrl+Shift+Z or Shift+Alt+BackspaceCtrl+Shift+Z or Shift+Alt+BackspaceCtrl+Shift+Z or Shift+Alt+BackspaceCtrl+Shift+Z or Shift+Alt+BackspaceCtrl+Shift+Z or Shift+Alt+MinusCtrl+Y or Ctrl+Shift+ZCtrl+Shift+Z, Shift+Alt+Backspace or Ctrl+YCtrl+YShift Command Z or Shift Alt BackspaceShift Command Z or Shift Alt BackspaceShift Command 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 or Ctrl+Shift+TabCtrl+Tab or Ctrl+Shift+TabCtrl+Tab or Ctrl+Shift+TabCtrl+Tab or Ctrl+Shift+TabCtrl+X, BCtrl+Tab or Ctrl+Shift+TabCtrl+Tab or Ctrl+Shift+TabCtrl+Tab or Ctrl+Shift+TabControl Tab or Control Shift TabControl Tab or Control Shift TabControl Tab or Control Shift Tab Switcher Navigate between the files opened in the editor, and tool windows.
Ctrl+BackspaceCtrl+BackspaceCtrl+BackspaceCtrl+BackspaceCtrl+Backspace, Alt+Backspace or Escape, BackspaceCtrl+BackspaceCtrl+BackspaceCtrl+BackspaceAlt BackspaceAlt BackspaceCommand Backspace Delete to Word Start Delete a word starting from the current caret location up to the word start.
Ctrl+DeleteCtrl+DeleteCtrl+DeleteCtrl+DeleteCtrl+DeleteCtrl+DeleteCtrl+DeleteCtrl+DeleteAlt DeleteAlt DeleteCommand Delete Delete to Word End Delete a word starting from the current caret location up to the word end.
Ctrl+EndCtrl+EndCtrl+EndCtrl+EndCtrl+End or Shift+Alt+PeriodCtrl+EndCtrl+EndCtrl+EndCommand EndCommand EndCommand End Move to Text End Move the caret to the end of text.
Ctrl+EnterCtrl+EnterCtrl+EnterCtrl+EnterCtrl+EnterCtrl+EnterCtrl+EnterCtrl+EnterCommand EnterCommand EnterCommand 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 Tool Windows: Open an Editor tab or tabs for the selected item or items, respectively.
Ctrl+HomeCtrl+HomeCtrl+HomeCtrl+HomeCtrl+Home, Shift+Alt+Comma or Escape, CommaCtrl+HomeCtrl+HomeCtrl+HomeCommand HomeCommand HomeCommand Home Move to Text Start Jump to the beginning of the text.
Ctrl+C or Ctrl+InsertCtrl+C or Ctrl+InsertCtrl+C or Ctrl+InsertCtrl+C or Ctrl+InsertCtrl+Insert, Alt+C or Escape, WCtrl+C or Ctrl+InsertCtrl+C or Ctrl+InsertCtrl+C or Ctrl+InsertCommand C or Command InsertCommand C or Command InsertCommand C or Command Insert Copy Copy a current line or a selected code block to the Clipboard.
Ctrl+SpaceCtrl+SpaceCtrl+SpaceCtrl+SpaceAlt+SlashCtrl+SpaceCtrl+Space or Ctrl+Back SlashCtrl+SpaceControl SpaceControl SpaceControl Space Basic Code Completion Complete code for any class, method or variable.
Ctrl+Page DownCtrl+Page DownCtrl+Page DownCtrl+Page DownCtrl+Page DownCtrl+Page DownShift+Alt+Page DownCtrl+Page DownCommand Page DownCommand Page DownCommand Page Down Navigate to Page Bottom Move the caret down to the page bottom.
Ctrl+Page UpCtrl+Page UpCtrl+Page UpCtrl+Page UpCtrl+Page UpCtrl+Page UpShift+Alt+Page UpCtrl+Page UpCommand Page UpCommand Page UpCommand Page Up Navigate to Page Top Move the caret up to the page top.
Ctrl+DownCtrl+DownCtrl+DownCtrl+DownCtrl+DownCtrl+DownCtrl+DownCtrl+DownEditorScrollDownCommand DownEditorScrollDown Scroll Down Move line at caret one down, preserving syntactical correctness.
Ctrl+LeftCtrl+LeftCtrl+LeftCtrl+LeftCtrl+Left, Alt+B or Escape, Ctrl+BCtrl+LeftCtrl+LeftCtrl+LeftAlt LeftAlt LeftAlt Left Move to Previous Word Move the caret to the previous word.
Ctrl+RightCtrl+RightCtrl+RightCtrl+RightCtrl+Right, Alt+F or Escape, Ctrl+FCtrl+RightCtrl+RightCtrl+RightAlt RightAlt RightAlt Right Move to Next Word Move the caret to the next word.
Ctrl+UpCtrl+UpCtrl+UpCtrl+UpCtrl+UpCtrl+UpCtrl+UpCtrl+UpEditorScrollUpCommand UpEditorScrollUp
Ctrl+Shift+UpCtrl+Shift+UpCtrl+Shift+UpCtrl+Shift+UpCtrl+Shift+UpCtrl+Shift+UpShift+Alt+UpAlt+UpShift Command UpShift Command UpAlt Up
Scroll Up: Move line at caret one up, preserving syntactical correctness.

Ctrl+symbol keys

Shortcut Function Use this shortcut to...
Ctrl+Open BracketCtrl+Open BracketCtrl+Open BracketCtrl+Open BracketCtrl+Open Bracket, Ctrl+Alt+Open Bracket or Ctrl+Alt+FCtrl+Open BracketCtrl+Open BracketCtrl+Open BracketAlt Command Open BracketCommand Open BracketAlt Command Open Bracket Move to Code Block Start Move the caret to the beginning of the current code block, highlighting its limits.
Ctrl+Close BracketCtrl+Close BracketCtrl+Close BracketCtrl+Close BracketCtrl+Close Bracket, Ctrl+Alt+Close Bracket or Ctrl+Alt+BCtrl+Close Bracket or Ctrl+AsteriskCtrl+Close BracketCtrl+Close Bracket or Ctrl+Shift+PAlt Command Close BracketCommand Close BracketControl Close Bracket or Control Shift P Move to Code Block End Move the caret to the end of the current code block, highlighting its limits.
Ctrl+Slash or Ctrl+NumPad /Ctrl+Slash or Ctrl+NumPad /Ctrl+Slash or Ctrl+NumPad /Ctrl+Slash or Ctrl+NumPad /Alt+SemicolonCtrl+Slash, Ctrl+NumPad / or Ctrl+ColonCtrl+Slash, Ctrl+NumPad / or Ctrl+Shift+CCtrl+Slash or Ctrl+NumPad /Command Slash or Command NumPad /Command Slash or Command NumPad /Command Slash or Command NumPad /
Ctrl+Numpad/
Comment with Line Comment Comment/uncomment current line or selected block with line comments.
Ctrl+=
Ctrl+NumPad+ or Ctrl+EqualsCtrl+NumPad+ or Ctrl+EqualsCtrl+NumPad+ or Ctrl+EqualsCtrl+NumPad+ or Ctrl+EqualsCtrl+NumPad+ or Ctrl+EqualsCtrl+NumPad+ or Ctrl+EqualsCtrl+NumPad+ or Ctrl+EqualsCtrl+NumPad+ or Ctrl+EqualsCommand NumPad or Command EqualsCommand NumPad or Command EqualsCommand NumPad or Command Equals
Expand All Expand all folding blocks.
Ctrl+NumPad - or Ctrl+MinusCtrl+NumPad - or Ctrl+MinusCtrl+NumPad - or Ctrl+MinusCtrl+NumPad - or Ctrl+MinusCtrl+NumPad - or Ctrl+MinusCtrl+NumPad - or Ctrl+MinusCtrl+NumPad - or Ctrl+MinusCtrl+NumPad - or Ctrl+MinusCommand NumPad - or Command MinusCommand NumPad - or Command MinusCommand NumPad - or Command Minus Collapse All Collapse all folding blocks.

Ctrl+numpad keys

Shortcut Function Use this shortcut to...
Ctrl+Numpad/
Ctrl+Slash or Ctrl+NumPad /Ctrl+Slash or Ctrl+NumPad /Ctrl+Slash or Ctrl+NumPad /Ctrl+Slash or Ctrl+NumPad /Alt+SemicolonCtrl+Slash, Ctrl+NumPad / or Ctrl+ColonCtrl+Slash, Ctrl+NumPad / or Ctrl+Shift+CCtrl+Slash or Ctrl+NumPad /Command Slash or Command NumPad /Command Slash or Command NumPad /Command Slash or Command NumPad /
Comment with Line Comment Comment/uncomment current line or selected block with line comments.
Ctrl+NumPad+ or Ctrl+EqualsCtrl+NumPad+ or Ctrl+EqualsCtrl+NumPad+ or Ctrl+EqualsCtrl+NumPad+ or Ctrl+EqualsCtrl+NumPad+ or Ctrl+EqualsCtrl+NumPad+ or Ctrl+EqualsCtrl+NumPad+ or Ctrl+EqualsCtrl+NumPad+ or Ctrl+EqualsCommand NumPad or Command EqualsCommand NumPad or Command EqualsCommand NumPad or Command Equals
Ctrl+=
Expand All Expand all folding blocks.
Ctrl+NumPad - or Ctrl+MinusCtrl+NumPad - or Ctrl+MinusCtrl+NumPad - or Ctrl+MinusCtrl+NumPad - or Ctrl+MinusCtrl+NumPad - or Ctrl+MinusCtrl+NumPad - or Ctrl+MinusCtrl+NumPad - or Ctrl+MinusCtrl+NumPad - or Ctrl+MinusCommand NumPad - or Command MinusCommand NumPad - or Command MinusCommand NumPad - or Command Minus Collapse All Collapse all folding blocks.

Ctrl+Function (F) keys

Shortcut Function Use this shortcut to...
Ctrl+F1Ctrl+F1Ctrl+1Ctrl+F1Ctrl+F1Ctrl+F1 or Alt+TCtrl+F1Ctrl+F1Command F1Command F1Command F1 Error Description Show an error or warning description at the caret.
Ctrl+F3Ctrl+F3Ctrl+3Ctrl+F3Ctrl+F3Ctrl+F3Ctrl+F3Ctrl+F12FindWordAtCaretCommand F3FindWordAtCaret Find Word at Caret Search in the editor for the word where the caret is currently located.
Ctrl+F6Ctrl+F6Ctrl+6Ctrl+F6Ctrl+F6Ctrl+F6Ctrl+F6Shift+Alt+CCommand F6Command F6Alt Command C Change Method Signature Refactor a selected method signature and update all references.
Ctrl+F7Ctrl+F7Ctrl+7Ctrl+F7Ctrl+F7Ctrl+Shift+F7 or Shift+F12Ctrl+F7Ctrl+Shift+GCommand F7Command F7Shift Command U Find Usages in File Initiate search for usages.
Ctrl+F8Ctrl+F8Ctrl+8Ctrl+F8Ctrl+F8F9Ctrl+F8Ctrl+Shift+B or Ctrl+F8Command F8Command F8Shift Command B Toggle Breakpoint Toggle breakpoint at caret.
Ctrl+F9Ctrl+F9Ctrl+9Ctrl+F9Ctrl+F9F7F11Ctrl+F9 or Ctrl+BCommand F9Command F9Command B Make Project Compile all modified and dependent files in a project.
Ctrl+F11Ctrl+F11Ctrl+F11Ctrl+F11Ctrl+F11Ctrl+F11Ctrl+F11Ctrl+F11Alt F3Command F11Alt F3 Toggle Bookmark with mnemonic. Turn bookmark with mnemonic on or off.
Ctrl+F12Ctrl+F12Ctrl+0Ctrl+F12Ctrl+F12Ctrl+F12Ctrl+F12 or Ctrl+Shift+F12Ctrl+F3 or Ctrl+OCommand F12Command F12Command O File Structure Pop-up Show the current file structure in the File Structure pop-up window for quick navigation.

See Also

Procedures:

Reference:

Getting Started:

Web Resources: