Listed here are all of the shortcuts you can use in the Codecademy learning environment:
Windows:
Ctrl+Enter Run Code
Alt+< Back
Alt+> Next
Ctrl+X Cut line (empty selection)
Ctrl+C Copy line (empty selection)
Alt+ ↑ / ↓ Move line up/down
Shift+Alt + ↓ / ↑ Copy line up/down
Ctrl+Shift+K Delete line
Ctrl+Shift+\ Jump to matching bracket
Ctrl+] / [ Indent/outdent line
Home / End Go to beginning/end of line
Ctrl+Home Go to beginning of file
Ctrl+End Go to end of file
Ctrl+↑ / ↓ Scroll line up/down
PgUp / PgDn Scroll page up/down
Ctrl+Shift+[ Fold (collapse) region
Ctrl+Shift+] Unfold (uncollapse) region
Ctrl+K Ctrl+[ Fold (collapse) all subregions
Ctrl+K Ctrl+] Unfold (uncollapse) all subregions
Ctrl+K Ctrl+0 Fold (collapse) all regions
Ctrl+K Ctrl+J Unfold (uncollapse) all regions
Ctrl+K Ctrl+C Add line comment
Ctrl+K Ctrl+U Remove line comment
Ctrl+/ Toggle line comment
Shift+Alt+A Toggle block comment
For a full list of Windows shortcuts, please see this page https://code.visualstudio.com/shortcuts/keyboard-shortcuts-windows.pdf
Mac:
Cmd+Enter Run Code
Ctrl+< Back
Ctrl+> Next
⌘X Cut line (empty selection)
⌥↓ / ⌥↑ Move line down/up
⇧⌥↓ / ⇧⌥↑ Copy line down/up
⇧⌘K Delete line
⇧⌘\ Jump to matching bracket
⌘] / ⌘[ Indent/outdent line
Home / End Go to beginning/end of line
⌘↑ / ⌘↓ Go to beginning/end of file
⌥⌘[ / ⌥⌘] Fold/unfold region
⌘K ⌘[ / ⌘K ⌘] Fold/unfold all subregions
⌘K ⌘0 / ⌘K ⌘J Fold/unfold all regions
⌘K ⌘C Add line comment
⌘K ⌘U Remove line comment
⌘/ Toggle line comment
⇧⌥A Toggle block comment
For a full list of Mac shortcuts, press F1 while in the text editor.
Please note that the shortcuts work best on QWERTY keyboards and some shortcuts may not work on other keyboard layouts.