Join Jesse Liberty for an in-depth discussion in this video Get started with Visual Studio Code, part of Developing with Visual Studio Code.
- [Instructor] I'll be using Visual Studio Code for the Mac, but everything done on the Mac is fully supported on Windows and Linux. And you can freely move files back and forth across operating systems. To download Visual Studio Code, go to visualstudio.com and click on the download button. The site will recognize your system. In this case it's going to download for Mac and take me directly to the setup instructions. Once your Visual Studio Code has downloaded, you can go to the downloads directory and double-click on the file.
Or you can click on the file right within Chrome or whatever browser you're using. Visual Studio Code will be expanded. Once it's expanded you can take Visual Studio Code and drag it to your Applications directory. Now you can go into your Applications directory, find Visual Studio Code, double-click on it, and that will start Visual Studio Code. The first time, if you're on a Mac, you'll need to say yes, you can open this, even though it is from the web.
Going to the docs, we can see that the setup documentation offers us instructions on how to launch Visual Studio Code from any directory. It tells us to open the Command Palette. We'll talk about the Command Palette quite a bit in this course. And you open it on the Mac by pressing Shift + Command + P. On Windows that would be Shift + Control + P. Once we're in the Command Palette, we can simply type shell and that will bring us to all of the commands that have shell. And the one we want is to install Code in the PATH.
So we'll go ahead and click on that. That will put Code into the PATH as you can see on the lower right. It was successfully installed. Now, to finalize that let's quit Code. And then we'll start it up again. That's all it takes to install Code and get it running. Let's try it out. In Windows you can open a Command prompt. On the Mac you can open up Terminal. All you need to do is move to the directory that you want to work in, in my case the code directory.
And then type code, for Visual Studio Code, space and a dot. When you hit Enter, Code will open in that directory. Let's expand that and you can see that I have a number of files in that directory and will, in fact, be working with these files as we go along. But I can now open up Visual Studio Code from any directory by using code space dot.
- Exploring the features and menus
- Using snippets
- Options and preferences
- Version control