Code academy !
Hello everyone!
Recently i have started learning python language which is a great language to bulid webapps
I started it on code academy and its a great platform to learn new emerging languages.
I recommend you to learn python because it would be great help in making different applications
When i was learning on code academy i faced a diffculty of switching between mouse and keyboard a number of times so i share here some of the keyboard shortcuts to make your learning easier and better.
PC Shortcuts
Navigation shortcuts
| Shortcut Key | Action |
|---|---|
| Ctrl + Enter | Submits the code in an exercise. |
| Alt + R | Resets the code in an exercise to its original state. |
| Alt + P | Loads the next exercise. You won't lose any of your code in the current exercise. |
| Alt + O | Loads the previous exercise. |
Text editing shortcuts
| Shortcut Key | Action |
|---|---|
| Alt + L Ctrl + F1 |
Folds selected text. |
| Alt + Shift + L Ctrl + Shift + F1 |
Unfolds selected text. |
| Alt + 0 | Folds all foldable blocks. |
| Alt + Shift + 0 | Unfolds all foldable blocks. |
| Ctrl + K | Finds next instance of current text selection. |
| Ctrl + Shift + K | Finds previous instance of current text selection. |
| Insert | Toggles insert mode. Text is overwritten. |
| Ctrl + Home | Go to the start of the document. |
| Ctrl + End | Go to the end of the document. |
| Shift + Home | Select all text from the cursor to the start of current line. |
| Shift + End | Select all text from the cursor to the end of current line. |
| Ctrl + Shift + Left | Selects the word to the left of the cursor. |
| Ctrl + Shift + Right | Selects the word to the right of the cursor. |
| Ctrl + Left | Move the cursor one word to the left. |
| Ctrl + Right | Move the cursor one word to the right. |
| Alt + Left Home |
Go to the start of current line. |
| Alt + Right End |
Go to the end of the current line. |
| Alt + Shift + Left | Selects all text from the cursor to the start of the current line. |
| Alt + Shift + Right | Selects all text from the cursor to the end of the current line. |
| Ctrl + P | Jump to the matching special character. |
| Ctrl + Shift + P | Select text between matching special characters. |
| Alt + Backspace | Delete from cursor to beginning of the line. |
| Alt + Delete | Delete from cursor to end of the line. |
| Ctrl + Backspace | Remove the word to the left of the cursor. |
| Ctrl + Delete | Remove the word to the right of the cursor. |
| Ctrl + D | Remove current line. |
| Ctrl + Shift + D | Duplicate selection or current line. |
| Ctrl + / | Toggle comment. |
| Ctrl + Shift + / | Toggle block comment. |
| Alt + Up | Move current line up. |
| Alt + Down | Move current line down. |
| Alt + Shift + Up | Copy current line up. |
| Alt + Shift + Down | Copy current line down. |
| Ctrl + [ | Unindent selection or current line. |
| Ctrl + ] | Indent selection or current line. |
| Ctrl + Alt + S | Sort selected lines. |
| Ctrl + U | Transform selection to uppercase. |
| Ctrl + Shift + U | Transform selection to lowercase. |
| Ctrl + Shift + Up | Increment number to left of cursor up. |
| Ctrl + Shift + Down | Increment number to left of cursor down. |
Mac Shortcuts
Navigation shortcuts
| Shortcut Key | Action |
|---|---|
| Cmd + Return | Submits the code in an exercise. |
| Opt + R | Resets the code in an exercise to its original state. |
| Opt + P | Loads the next exercise. You won't lose any of your code in the current exercise. |
| Opt + O | Loads the previous exercise. |
| Ctrl + L | Vertically centers the view on the current selection. |
Text editing shortcuts
| Shortcut Key | Action |
|---|---|
| Cmd + Alt + L Cmd + F1 |
Folds selected text. |
| Cmd + Alt + Shift + L Cmd + Shift + F1 |
Unfolds selected text. |
| Cmd + Opt + 0 | Folds all foldable blocks. |
| Cmd + Opt + Shift + 0 | Unfolds all foldable blocks. |
| Cmd + G | Finds next instance of current text selection. |
| Cmd + Shift + G | Finds previous instance of current text selection. |
| Insert | Toggles insert mode. Text is overwritten. |
| Cmd + Home Cmd + Up |
Go to the start of the document. |
| Cmd + End Cmd + Down |
Go to the end of the document. |
| Ctrl + Shift + Left | Selects the word to the left of the cursor. |
| Ctrl + Shift + Right | Selects the word to the right of the cursor. |
| Opt + Left | Move the cursor one word to the left. |
| Opt + Right | Move the cursor one word to the right. |
| Cmd + Left Home Ctrl + A |
Go to the start of current line. |
| Cmd + Right End Ctrl + E |
Go to the end of the current line. |
| Shift + Home | Select all text from the cursor to the start of current line. |
| Shift + End | Select all text from the cursor to the end of current line. |
| Cmd + Shift + Left | Selects all text from the cursor to the start of the current line. |
| Cmd + Shift + Right | Selects all text from the cursor to the end of the current line. |
| Ctrl + Shift + P | Jump to the matching special character. |
| Cmd + Backspace | Delete from cursor to beginning of the line. |
| Ctrl + K | Delete from cursor to end of the line. |
| Alt + Backspace Ctrl + Alt + Backspace |
Remove the word to the left of the cursor. |
| Alt + Delete | Remove the word to the right of the cursor. |
| Cmd + D | Remove current line. |
| Cmd + Shift + D | Duplicate selection or current line. |
| Cmd + / | Toggle comment. |
| Cmd + Shift + / | Toggle block comment. |
| Opt + Up | Move current line up. |
| Opt + Down | Move current line down. |
| Cmd + Opt + Up | Copy current line up. |
| Cmd + Opt + Down | Copy current line down. |
| Ctrl + [ | Unindent selection or current line. |
| Ctrl + ] | Indent selection or current line. |
| Cmd + Alt + S | Sort selected lines. |
| Ctrl + U | Transform selection to uppercase. |
| Ctrl + Shift + U | Transform selection to lowercase. |
| Alt + Shift + Up | Increment number to left of cursor up. |
| Alt + Shift + Down | Increment number to left of cursor down. |
| Ctrl + O | Split current line into two lines. |
Happy Coding