![]() If the file is larger it's tedious to scroll up and down to go to a specific line. If some error occurs in the application, you might see the filename along with the line number being displayed. Navigate to Specific Line Number In a File The nice thing about opening an integrated terminal is that the terminal automatically opens in your project folder so you don't need to use the cd command to navigate to your project folder.ħ. Once one terminal is opened, you can open another terminal by clicking the + sign. ![]() This keyboard shortcut is the same for windows and Mac.Ĭtrl + `: ( Ctrl + tilde character which is just before the digit 1 on the keyboard) Instead of opening a separate terminal/command prompt, using this shortcut, you can open a terminal that is integrated right into the VS Code. This shortcut also comes in handy when comparing changes done in the file and cannot be seen clearly because of the small size window as shown below. You can easily toggle the sidebar using the following shortcut. I like to code in full-screen mode in VS Code so there is less distraction. This shortcut comes really handy when debugging code when jumping between the code. Therefore, we can use the following shortcut to know where our cursor was last time. To Goto any function or component, we do Ctrl + Click but later we can lose track of where we came from. Navigate Back and Forth Between the Files If you want to change the similar text at multiple places, then you can use the multiple cursors shortcut.įor that, first, manually select the text you want to replace or change and then press the following shortcuts depending on your operating system and then you can type anything that you want to add or replace with.Ĭmd + U : Undo the last selected matching textĬtrl + U : Undo the last selected matching textĤ. To delete the current line where the cursor is present, you can use the following shortcut.ģ. So in this article, we will see some of the widely used shortcuts which make developers' life easy and coding faster. Visual Studio Code is the most widely used and most loved code editor for application development.
0 Comments
Leave a Reply. |