You are on page 1of 3

Spyder Keyboard Shortcuts for the Editor under Windows

Conventional (more or less) Keyboard Shortcuts


Home Go to start of line
End Go to end of line
Left Arrow Go to previous character
Right Arrow Go to next character
Up Arrow Go up to previous line
Down Arrow Go down to next line
Ctrl + Left Arrow Go to start of previous word
Ctrl + Right Arrow Go to start of next word
Ctrl + Up Arrow (or Ctrl + Home) Go to start of document
Ctrl + Down Arrow (or Ctrl + End) Go to end of document
Ctrl + O Open file
Ctrl + N Open new file
Ctrl + Backspace Delete to beginning of previous word
Ctrl + Delete Delete to beginning of next word
Ctrl + A Select all
Ctrl + C Copy selection
Ctrl + S Save current file
Ctrl + Shift + S Save current file as
Ctrl + Alt + S Save all open files
Delete Delete selection or current character
Ctrl + X Cut selection
Ctrl + V Paste clipboard contents
Ctrl + Z Undo last action
Ctrl + Shift + Z Redo last action
Ctrl + Q Quit Spyder

Keyboard Shortcuts for Navigation


Ctrl + L Go to line
Ctrl + Tab Go to previous file
Ctrl + Shift + Tab Go to next file
Ctrl + Shift + T Go to (i.e., open) last closed file
Ctrl + P Go to (i.e., switch to and open) file …
Ctrl + Alt + Left Arrow Go to previous cursor location
Ctrl + Alt + Right Arrow Go to next cursor location
Ctrl + Alt + Shift + Left Arrow Go to last edit location
Ctrl + G Go to definition
Keyboard Shortcuts for Zooming and Commenting
Ctrl + + (or Ctrl + =) Zoom in
Ctrl + - Zoom out
Ctrl + 0 Zoom reset
Ctrl + 1 Toggle comment selection (or line)
Ctrl + 4 Insert block comment
Ctrl + 5 Uncomment block comment

Keyboard Shortcuts for Search and Replace


Ctrl + F Find text
F3 Find next
Shift + F3 Find previous
Ctrl + R Replace text

Keyboard Shortcuts for Moving, Copying, Duplicating, Deleting


Alt + Down Arrow Move line down
Alt + Up Arrow Move line up
Ctrl + D Delete line
Ctrl + Alt + Down Arrow Copy line
Ctrl + Alt + Up Arrow Duplicate line

Miscellaneous Keyboard Shortcuts


Tab Indent selected line(s)
Shift + Tab Unindent selected line(s)
Ctrl + U Transform to lowercase
Ctrl + Shift + U Transform to uppercase
Ctrl + W (or Ctrl + F4) Close file
Ctrl + Shift + W Close all
Ctrl + Space Code completion
Ctrl + I Inspect current object
Meta + K Kill to end of line
Meta + U Kill to start of line
Meta + Shift + Y Rotate kill ring
Meta + Y Yank
Keyboard Shortcuts for Executing Code
F5 Run file (complete program)
F6 Re-run last script
Ctrl + F6 Configure …
F9 Run selection (or current line)
F10 Profile
Ctrl + Enter Run cell
Shift + Enter Run cell and advance
F8 Run static code analysis
Ctrl + T Open an iPython console
Ctrl + . Restart kernel

Keyboard Shortcuts for Debugging Code


F12 Breakpoint
Shift + F12 Conditional breakpoint
Ctrl + F5 Debug
Ctrl + F10 Step
Ctrl + F11 Step into
Ctrl + Shift + F11 Step return
Ctrl + F12 Continue
Ctrl + Shift + F12 Stop

Keyboard Shortcuts for Interface Adjustment and Layouts


Ctrl + Shift + E Editor pane
Ctrl + Shift + C Python console pane
Ctrl + Shift + I iPython console pane
Ctrl + Shift + V Variable explorer pane
Ctrl + Shift + H Help pane
Ctrl + Shift + X File explorer pane
Ctrl + Shift + O (or Ctrl + Alt + O) Outline pane (show/hide)
Ctrl + Shift + P Project explorer pane
Ctrl + Shift + F Find in files pane
Ctrl + Shift + L History log pane
Ctrl + Shift + B Breakpoints pane
Ctrl + Shift + D Online help pane
Ctrl + Shift + F4 Close current pane
Ctrl + Shift + F5 Lock panes
Ctrl + Alt + Shift + M Maximize current pane
Ctrl + Alt + Shift + P Preferences
F11 Full screen mode
Alt + Shift + T Toolbars (hide/show)
Alt + Shift + PageUp Use previous layout
Alt + Shift + PageDown Use next layout
Alt + Shift + S Save current layout
Alt + Shift + P Layout preferences

You might also like