IDE Code Editor Shortcuts

This guide will show you all the common shortcuts that I use to accelerate my programming speed into hyper-space!

By aridepai17

Theme

The theme is used in VSCode in FreeCodeCamp theme which can be installed via the extensions tab!


1. open terminal

Windows Mac
ctrl + ` cmd + `

This command will open up your terminal from within the IDE and automatically cd you into the project directory.


2. kill terminal

Windows Mac
ctrl + c cmd + c

This command will kill your current terminal execution, which is handy if you ever get stuck in any infinite or near abouts executions!


3. Auto Code Format

Windows Mac
shift + alt + f option + shift + f

This command will automatically format your code with indentations and spacing and all that good stuff.

If you don't have an auto-formatter extension installed in your IDE for the programming language you are using, then you will be prompted to install one!


4. Code Wrap

Windows Mac
alt + z option + z

This command will toggle on and off code wrapping, which determines whether or not your code will overflow the screen, or wrap onto a new line (without breaking any syntax).


5. Line Wrap

Windows Mac
alt + up / down option + up / down

This command will swap the currently selected line, with either the line above or below depending on the arrow key chosen.


6. Duplicate Line or Selection

Windows Mac
shift + alt + up / down shift + option + up / down

This command will duplicate the currently selected lines of code, and place the duplication either above or below the currently selected code depending on the arrow key chosen.


7. Multi-Cursor

Windows Mac
alt + cursor select (click) option + cursor select (click)

Create multiple cursors which will allow you to write in multiple places at the same time. This can be helpful if you are making the same adjustments to numerous lines


8. Jump to Start or End of Line

Windows Mac
home / end cmd + left / right arrow

This command will jump your cursor to either the start or the end of line, which can be very convenient when the alternative is often having to click.


9. Adjacent Select

Windows Mac
shift + left / right / up / down shift + left / right / up / down

Select the character to the immediate side of your current cursor position.


10. Jump to Start or End of Code

Windows Mac
ctrl + home / end cmd + home / end

This command will jump your cursor to either the top of your code body or the very bottom, which can be very convenient when the alternative is often having to click.


11. Horizontal Jump Select

Windows Mac
shift + ctrlhome / end shift + cmdup / down

Select all the text to either the left, or right of your current cursor position


12. Comment Line(s)

Windows Mac
ctrl + / cmd + /

This command will comment out ( or uncomment ) the selected line or lines.


13. Quick Fix

Windows Mac
ctrl + . cmd + .

This command will quickly fix any errors in your code.



Stay tuned! More shortcuts are being added!
This code was created by aridepai17 using the FantaCSS sylesheet.

If you spot a mistake or issue, or have any suggestions, be sure to let me know on the GitHub code for this project!