Open folder in Visual Studio Code from the Finder
When working on many simultaneous projects with Visual Studio Code (VS Code), it is convenient having a fast way of opening the project folders. With the open from the terminal shell extension, and the macOS service below, your project folders can be opened from both the Terminal and the Finder.
- Install the Shell Command: Install ‘code’ command in PATH in VS Code.
- Download the Automator service from this repository. This is a macOS service which opens a given folder from the Finder in VS Code.
- Open the service and choose Install.
That’s it! Now all you have to do is right clicking on a folder and choose the Open in Visual Studio Code service and your folder will open as a project in VS Code.
Changing the code
If you want to edit your own version of this service, clone the repository from GitHub and follow these instructions.