

Note: Users on macOS must first run a command ( Shell Command: Install 'code' command in PATH) to add VS Code executable to the PATH environment variable. To do this, from an open terminal or command prompt, navigate to your project folder and type code. Typically, you open VS Code within the context of a folder. You can launch VS Code from the command line to quickly open a file, folder, or project. You will see the version, usage example, and list of command line options. To get an overview of the VS Code command-line interface, open a terminal or command prompt and type code -help. If you are looking for how to run command-line tools inside VS Code, see the Integrated Terminal.

You can open files, install extensions, change the display language, and output diagnostics through command-line options (switches). Visual Studio Code has a powerful command-line interface built-in that lets you control how you launch the editor. Configure IntelliSense for cross-compiling.

You could also try Ctrl + Shift + to display the command palette while you program. Some of the most useful ones are Shift + Alt + Up and Shift + Alt + Down P, which enable you to copy and paste single lines of code. This will increase your efficiency and aid you in your journey to mastery. There are some essential keyboard shortcuts for Visual Studio Code you should learn. Swipe through the contents displayed on your screen and modify them to your taste. You can also open settings by clicking on the bottom Icon on the vertical panel to the left of your screen and clicking on Settings once a list opens.įollow this up by clicking on Commonly Used, which will be the first item contained in a vertical list slightly to the left of your VS Code menu. For now, let us stick to the basics.Ĭlick on Settings in the second open tab on your VS Code. The better you get as a programmer, the more you will be able to customize the settings. The developers have taken their time to collate the most frequently used settings to help you enjoy the benefits of VS Code.
