10 vs code shortcuts that can save your time

Photo by Juan Gomez on Unsplash

10 vs code shortcuts that can save your time

If you use visual studio code, are you using shortcuts to make things easy for you ? if no, then you are at the right place, Coding can be frustrating at times but should our coding environment too frustrate us, i don't think so, I'll be listing 10 visual studio code shortcuts that can save us our time so we have more time to debug.

  1. Ctrl + ↑ or ↓: Do you know you can easily move your code around in your Vs code with the control button and arrow up or arrow down button, if you've been copying the code you want to move, it's time to try this shortcut.

  2. Ctrl + shift + ↑ or ↓: With this shortcut you can easily duplicate a line or lines of code and if you wish to move it/them somewhere else you can use the shortcut above.

  3. Ctrl + F: Now you don't need to find any text manually, a box appears when you press this shortcut it contains a section to include the text you want to find, click your enter button and it'll take you to where the text is found.

  4. Ctrl + N: Do you know you can create a new file with this command, this command will take you to an untitled file and you can use the select language option so it can have the necessary extension.

  5. Ctrl + T: You can search files by name with this command, it'll bring a box where you input your text and it'll bring all files matching the text.

  6. Ctrl + X: You don't need to copy a line of code then delete it when you are done copying, you can easily copy and delete at the same time with this command.

  7. Ctrl + 2: Do you know you can split your screen with this command, then click on the second file you want to work on, now you can work on two files at the same time.

  8. Ctrl + G: Sometimes you don't need to scroll, you can use this command to go to a particular line in your file, the command will bring a box and you just type the line number you want to go to.

  9. Ctrl + Z: You can easily undo your previous step with this shortcut, you don't need to write it all over again.

  10. Ctrl + Y: You can easily redo your undone step with this shortcut, you don't need to write it all over again.