Then press the keys command-shift-P (or ⌘-⇧-P), a text field should appear, stating with a >. So now, let’s focus on the main goal, being able to call the command code from your the terminal.To do so, you must open Visual Studio Code. The first step to have the command code accessible is to install Visual Studio Code, obviously.If this is not already the case for you, then, follow this link, download and install it on your computer.Īt this point, you should be able to open Visual Studio Code, without using the terminal □ You can also add the option -n to open it in a new windows, or the option -h to display the help and have all the description of all the possibilities available to you. Once setup up, you can use command line like code my_file_or_folder to open a file or a folder in Visual Studio Code. Two week ago, I had to reinstall all the tools I use on a new computer, since the previous one passed away ☠Īnd since I often use Visual Studio Code when developing, (please, no debate over which text editor is the best in the comment □), I had to reinstall it and make it easily accessible through the terminal.įor those who don’t know, Visual Studio Code has a shortcut, a command line tool named code, which allow you to use summon Visual Studio Code though your terminal.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |