
The post Automatically Open the Current Directory in VS Code From Terminal appeared first on Shannon Crabill - Front End Software Engineer.

(that is the word “code” followed by a space, then a period) and the folder will automatically open in VS Code. When you are in the directory with the files you want to open in VS Code, type code. If you already have a Terminal session running, quit or restart it. should pop up (for me the pop up appeared in the lower, righthand corner).

This can be used to open files and projects in Sublime Text, as well working as an EDITOR for unix tools, such as git and subversion.

With VS Code running, enter Command + Shift + P to open the Command Palette (or View > Command Palette from the menu bar) Sublime Text includes a command line tool, subl, to work with files on the command line.Luckily, it takes a few steps to activate.
#VS CODE MAC COMMAND LINE HOW TO#
I’ve since switched back to VS Code and after begrudgingly dragging folders into VS Code to open them, I decided to figure out how to enable that command. to open a Finder window for whichever directory you are currently in.Īt one point I had a similar command to instantly open a folder in VS Code (Visual Studio Code), but deleted it after I switched from VS Code to Atom. Last year, I was blown away by some Terminal commands that I learned.
