PyCharm 4.0.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+A⌘ A⌘ A⌘ 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 Click⌘ B, ⌘ Button1 Click or Button2 Click⌘ B, ⌘ 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+Insert⌘ C or ⌘ Insert⌘ C or ⌘ Insert⌘ C or ⌘ Insert Copy Copy selected text to the Clipboard.
Ctrl+DCtrl+DCtrl+DCtrl+D⌘+DCtrl+DCtrl+D, Ctrl+Shift+Down or Ctrl+Shift+UpCtrl+D⌘ D⌘ D⌘ D Duplicate Line or Block Duplicate selected block or line at caret.
Ctrl+ECtrl+ECtrl+ECtrl+ECtrl+ECtrl+EShift+F4Ctrl+E⌘ E⌘ E⌘ 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+F3⌘ F⌘ F or Alt F3⌘ F Find Initiate text search in the editor.
Ctrl+GCtrl+GCtrl+GCtrl+GAlt+GCtrl+GCtrl+GCtrl+L⌘ L⌘ G⌘ 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+J⌘ J⌘ J⌘ 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+T⌘ O⌘ NShift ⌘ 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 O⌘ OControl O Override Methods Override base class methods in the current class.
Ctrl+PCtrl+PCtrl+PCtrl+PCtrl+PCtrl+PCtrl+PCtrl+P⌘ P⌘ P⌘ 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+F⌘ R⌘ R⌘ R Replace Call the Replace Text dialog box.
Ctrl+SCtrl+SCtrl+SCtrl+SCtrl+X, Ctrl+SCtrl+SCtrl+S or Ctrl+Shift+SCtrl+S⌘ S⌘ S⌘ S Save All Save all files and settings.
Ctrl+UCtrl+UCtrl+UCtrl+UCtrl+UCtrl+UCtrl+Shift+PCtrl+U⌘ U⌘ U⌘ 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+Insert⌘ V or Shift Insert⌘ V or Shift Insert⌘ V or Shift Insert Paste Paste from the Clipboard.
Ctrl+WCtrl+WCtrl+WCtrl+WCtrl+Alt+WCtrl+WShift+Alt+PeriodShift+Alt+UpAlt Up⌘ 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+Delete⌘ X or Shift Delete⌘ X or Shift Delete⌘ X or Shift Delete Cut Cut to the Clipboard.
Ctrl+YCtrl+YCtrl+YCtrl+YCtrl+YCtrl+Shift+LCtrl+ECtrl+D⌘ Backspace⌘ Y⌘ 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+Z⌘ Z⌘ Z⌘ 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 ⌘ Z or Shift Alt BackspaceShift ⌘ Z or Shift Alt BackspaceShift ⌘ 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 Backspace⌘ 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 Delete⌘ 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+End⌘ End⌘ End⌘ End Move to Text End Move the caret to the end of text.
Ctrl+EnterCtrl+EnterCtrl+EnterCtrl+EnterCtrl+EnterCtrl+EnterCtrl+EnterCtrl+Enter⌘ Enter⌘ Enter⌘ 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+Home⌘ Home⌘ Home⌘ 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+Insert⌘ C or ⌘ Insert⌘ C or ⌘ Insert⌘ C or ⌘ 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 Down⌘ Page Down⌘ Page Down⌘ 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 Up⌘ Page Up⌘ Page Up⌘ Page Up Navigate to Page Top Move the caret up to the page top.
Ctrl+DownCtrl+DownCtrl+DownCtrl+DownCtrl+DownCtrl+DownCtrl+DownCtrl+DownEditorScrollDown⌘ 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+UpEditorScrollUp⌘ UpEditorScrollUp
Ctrl+Shift+UpCtrl+Shift+UpCtrl+Shift+UpCtrl+Shift+UpCtrl+Shift+UpCtrl+Shift+UpShift+Alt+UpAlt+UpShift ⌘ UpShift ⌘ 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 ⌘ Open Bracket⌘ Open BracketAlt ⌘ 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 ⌘ Close Bracket⌘ 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 or Ctrl+Shift+CCtrl+Slash or Ctrl+NumPad /⌘ Slash or ⌘ NumPad /⌘ Slash or ⌘ NumPad /⌘ Slash or ⌘ 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+Equals⌘ NumPad or ⌘ Equals⌘ NumPad or ⌘ Equals⌘ NumPad or ⌘ 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+Minus⌘ NumPad - or ⌘ Minus⌘ NumPad - or ⌘ Minus⌘ NumPad - or ⌘ 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 or Ctrl+Shift+CCtrl+Slash or Ctrl+NumPad /⌘ Slash or ⌘ NumPad /⌘ Slash or ⌘ NumPad /⌘ Slash or ⌘ 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+Equals⌘ NumPad or ⌘ Equals⌘ NumPad or ⌘ Equals⌘ NumPad or ⌘ 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+Minus⌘ NumPad - or ⌘ Minus⌘ NumPad - or ⌘ Minus⌘ NumPad - or ⌘ 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+F1⌘ F1⌘ F1⌘ F1 Error Description Show an error or warning description at the caret.
Ctrl+F3Ctrl+F3Ctrl+3Ctrl+F3Ctrl+F3Ctrl+F3Ctrl+F3Ctrl+F12FindWordAtCaret⌘ 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+C⌘ F6⌘ F6Alt ⌘ 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+G⌘ F7⌘ F7Shift ⌘ U Find Usages in File Initiate search for usages.
Ctrl+F8Ctrl+F8Ctrl+8Ctrl+F8Ctrl+F8F9Ctrl+F8Ctrl+Shift+B or Ctrl+F8⌘ F8⌘ F8Shift ⌘ B Toggle Breakpoint Toggle breakpoint at caret.
Ctrl+F9Ctrl+F9Ctrl+9Ctrl+F9Ctrl+F9F7F11Ctrl+F9 or Ctrl+B⌘ F9⌘ F9⌘ B Make Project Compile all modified and dependent files in a project.
Ctrl+F11Ctrl+F11Ctrl+F11Ctrl+F11Ctrl+F11Ctrl+F11Ctrl+F11Ctrl+F11Alt F3⌘ 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+O⌘ F12⌘ F12⌘ 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: