I’ve discovered a lot of keyboard shortcuts for Codecademy excercises not listed before, so I thought I’d share them here! I’ve tested all of them and tried to add descriptions and categories for clarity. I’d be happy to list Mac shortcuts as well. Please let me know if you have any suggestions!
Official keyboard shortcuts topic & update post for reference:
Contents
PC ShortcutsPC Shortcuts
Basics
Shortcut Key | Action |
---|---|
Ctrl + Enter | Submit the code. |
Alt + G | Reset the code to its original state. |
Alt + > | Load the next exercise. |
Alt + < | Load the previous exercise. |
Navigation
Shortcut Key | Action |
---|---|
Home | Go to start of current line or indentation. |
End | Go to end of current line. |
Ctrl + Home | Go to start of document. |
Ctrl + End | Go to end of document. |
Ctrl + Left | Jump one word left. |
Ctrl + Right | Jump one word right. |
Ctrl + Backspace | Delete one word to the left. |
Ctrl + Delete | Delete one word to the right. |
Alt + Left | Jump one subword left. |
Alt + Right | Jump one subword right. |
Ctrl + Alt + Up | Add cursor to previous line. |
Ctrl + Alt + Down | Add cursor to next line. |
Ctrl + Up | Scroll the view one line up. |
Ctrl + Down | Scroll the view one line down. |
Ctrl + K, Ctrl + C | Vertically center the view on selection. |
Shift + Ctrl + [ | Fold selected text or current line. |
Shift + Ctrl + ] | Unfold selected text or current line. |
Ctrl + K, Ctrl + 0 Ctrl + K, Ctrl + J |
Unfold all foldable blocks. |
Text editing
Shortcut Key | Action |
---|---|
Ctrl + Z | Undo. |
Shift + Ctrl + Z Ctrl + Y |
Redo. |
Tab | Insert tab at cursor. |
Ctrl + ] | Indent selection or current line. |
Ctrl + [ Shift + Tab |
Unindent selection or current line. |
Ctrl + K, Ctrl + Backspace | Delete from cursor to beginning of the line. |
Ctrl + K, Ctrl + K | Delete from cursor to end of the line. |
Ctrl + K, Ctrl + U | Transform selection or current word to uppercase. |
Ctrl + K, Ctrl + L | Transform selection or current word to lowercase. |
Selection
Shortcut Key | Action |
---|---|
Ctrl + A | Select all. |
Ctrl + L | Select line. |
Shift + Ctrl + L | Split selection by line. |
Esc | Deselect all except for the top selection. |
Ctrl + U | Undo selection. |
Shift + Ctrl + U Alt + U |
Redo selection. |
Ctrl + D | Multi-select next instance of current word or selection. |
Ctrl + F3 | Select next instance of current word. |
Shift + Ctrl + F3 | Select previous instance of current word. |
Alt + F3 | Select all instances of current word. |
Ctrl + M | Jump to the matching special character. |
Shift + Ctrl + M | Select text between matching special characters. |
Shift + Ctrl + Space | Select text in current scope. |
Line Operations
Shortcut Key | Action |
---|---|
Enter | Insert indented newline below. |
Shift + Enter | Insert newline below without indent. |
Shift + Ctrl + Enter | Insert newline above without indent. |
Shift + Ctrl + Up | Move current line up. |
Shift + Ctrl + Down | Move current line down. |
Ctrl + J | Join lines. |
Shift + Ctrl + D | Duplicate selection or current line. |
Shift + Ctrl + K | Remove current line. |
F9 | Sort all or selected lines. |
Ctrl + F9 | Sort all or selected lines case insensitive. |
Ctrl + / | Toggle comment. |
Marking
Shortcut Key | Action |
---|---|
F2 | Jump to next bookmark. |
Shift + F2 | Jump to previous bookmark. |
Ctrl + F2 | Toggle bookmark at cursor. |
Alt + F2 | Select all bookmarks. |
Shift + Ctrl + F2 Ctrl + K, Ctrl + G |
Clear all bookmarks. |
Ctrl + K, Ctrl + Space | Set sublime mark at cursor. |
Ctrl + K, Ctrl + A | Select from cursor to sublime mark. |
Ctrl + K, Ctrl + X | Swap cursor with sublime mark. |
Below are a couple of shortcuts I couldn’t get to work. Included for documentation.
Uncertain
Shortcut Key | Action |
---|---|
Ctrl + S | Save. |
Ctrl + F | Find. |
Ctrl + G F3 |
Find next. |
Shift + Ctrl + G Shift + F3 |
Find previous. |
Ctrl + I | Find incremental. |
Shift + Ctrl + I | Find incremental reverse. |
Shift + Ctrl + F Ctrl + H |
Replace. |
Shift + Ctrl + R | Replace all. |
Alt + Q | Wrap lines. |
Ctrl + T | Transpose characters. |
Ctrl + K, Ctrl + W | Delete to sublime mark. |
Ctrl + K, Ctrl + Y | Sublime yank |