Quick Tip: Running Visual Studio Code for the current directory

Lots of people probably already know this, but there are a couple of ways to open the current directory in an instance of Visual Studio Code. The obvious one is, if you've got a File Explorer window open, to right-click in the whitespace somewhere and choose the "Open with Code" context menu option.

If you're working in a command prompt, there's an option available as well:

Running Visual Studio Code from the command line

The command to run is:

code .

This simply loads Visual Studio Code and tells it to open the current diretory. This is right at the top of the documentation for The Visual Studio Code Command Line Options, but who goes and looks at that unless they've got a specific problem to solve, right?

About Rob

I've been interested in computing since the day my Dad purchased his first business PC (an Amstrad PC 1640 for anyone interested) which introduced me to MS-DOS batch programming and BASIC.

My skillset has matured somewhat since then, which you'll probably see from the posts here. You can read a bit more about me on the about page of the site, or check out some of the other posts on my areas of interest.

No Comments