PyCharm 4.0.0 Web Help

Function Shortcut Use this shortcut to...
Comment with Line Comment 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/uncomment current line or selected block with line comments.
Comment with Block Comment Ctrl+Shift+Slash or Ctrl+Shift+NumPad /Ctrl+Shift+Slash or Ctrl+Shift+NumPad /Ctrl+Shift+Slash or Ctrl+Shift+NumPad /Ctrl+Shift+Slash or Ctrl+Shift+NumPad /Ctrl+Shift+Slash or Ctrl+Shift+NumPad /Ctrl+Shift+Slash, Ctrl+Shift+NumPad / or Ctrl+Shift+ColonCtrl+Shift+Slash or Ctrl+Shift+NumPad /Ctrl+Shift+SlashAlt ⌘ Slash, Alt ⌘ NumPad /, Control Shift Slash, Control Shift NumPad /, Shift ⌘ Slash or Shift ⌘ NumPad /Control Shift Slash, Control Shift NumPad /, Shift ⌘ Slash or Shift ⌘ NumPad /Control Shift Slash Comment/uncomment code with block comments.
Quick Documentation 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+Button2 Click Show a pop-up window with the documentation for the symbol at the caret.
Pop-up Hector Ctrl+Shift+Alt+HCtrl+Shift+Alt+HCtrl+Shift+Alt+HCtrl+Shift+Alt+HCtrl+Shift+Alt+HCtrl+Shift+Alt+HCtrl+Shift+Alt+HCtrl+Shift+Alt+HShift Alt ⌘ HShift Alt ⌘ HShift Alt ⌘ H Show the Highlighting level pop-up window to configure highlighting in the current file.
Parameter Info Ctrl+PCtrl+PCtrl+PCtrl+PCtrl+PCtrl+PCtrl+PCtrl+P⌘ P⌘ P⌘ P Show parameters of the method call at the caret.
Context Info Alt+QAlt+QAlt+QAlt+QAlt+QAlt+QAlt+QAlt+QControl Shift QControl Shift QControl Shift Q Show the current method or class declaration when it is not visible.
Error Description Ctrl+F1Ctrl+F1Ctrl+1Ctrl+F1Ctrl+F1Ctrl+F1 or Alt+TCtrl+F1Ctrl+F1⌘ F1⌘ F1⌘ F1 Show an error or warning description at the caret.
External Documentation Shift+F1Shift+F1Shift+F1Shift+F1Shift+F1Shift+F1 or Ctrl+F1Shift+F1Shift+F2Shift F1Shift F1Shift F2 Open browser with the documentation for the selected item.
Override Methods... Ctrl+OCtrl+OCtrl+OCtrl+OCtrl+OCtrl+Shift+OCtrl+OCtrl+OControl O⌘ OControl O Override base class methods in the current class.
Surround with... Ctrl+Alt+TCtrl+Alt+TCtrl+Alt+TCtrl+Alt+TCtrl+Alt+TCtrl+Alt+TCtrl+Alt+TShift+Alt+Z or Ctrl+Alt+TAlt ⌘ TAlt ⌘ TAlt ⌘ Z Surround selected code fragment with if, do, tags or other constructs.
Basic Code Completion Ctrl+SpaceCtrl+SpaceCtrl+SpaceCtrl+SpaceAlt+SlashCtrl+SpaceCtrl+Space or Ctrl+Back SlashCtrl+SpaceControl SpaceControl SpaceControl Space
Alt+SlashAlt+SlashAlt+SlashAlt+SlashAlt+SlashAlt+SlashCtrl+Shift+KAlt+SlashAlt SlashAlt SlashControl Period
Code completion for any class, method or variable.
SmartType Code Completion Ctrl+Shift+SpaceCtrl+Shift+SpaceCtrl+Shift+SpaceCtrl+Shift+SpaceCtrl+Shift+Space or Ctrl+Alt+SlashShift+Alt+SpaceCtrl+Shift+Space or Ctrl+Shift+Back SlashShift+Alt+SpaceControl Shift SpaceControl Shift SpaceShift Alt Space Code Completion filtering the lookup list basing on expected type.
Expand Word Alt+SlashAlt+SlashAlt+SlashAlt+SlashAlt+SlashAlt+SlashCtrl+Shift+KAlt+SlashAlt SlashAlt SlashControl Period Goes through the names of classes, methods, keywords and variables in the current visibility scope.
Insert Live Template... Ctrl+JCtrl+JCtrl+JCtrl+JCtrl+JCtrl+JCtrl+JCtrl+Shift+Alt+J⌘ J⌘ J⌘ J Show a pop-up list of starting with a specified prefix.
Surround with Live Template... Ctrl+Alt+JCtrl+Alt+JCtrl+Alt+JCtrl+Alt+JCtrl+Alt+JCtrl+Alt+JCtrl+Alt+JCtrl+Alt+JAlt ⌘ JAlt ⌘ JAlt ⌘ J Surround the selection with one of the templates.
Next Template Variable Tab or EnterTab or EnterTab or EnterTab or EnterTab or EnterTab or EnterTab or EnterTab or EnterTab or EnterTab or EnterTab or Enter In templates: move the caret to the next template variable.
Previous Template Variable Shift+TabShift+TabShift+TabShift+TabShift+TabShift+TabShift+TabShift+TabShift TabShift TabShift Tab In templates: move the caret to the previous template variable.

See Also

Procedures:

Reference:

Web Resources: