macOS service which opens a given folder from the Finder in Visual Studio Code.
Branch: master
Clone or download
Sankra Merge pull request #3 from Hammerstad/master
Fixed typo in README.md
Latest commit b1b68e3 Jan 24, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Open in Visual Studio Code.workflow/Contents Fixed previously open window bug Dec 22, 2017
LICENSE Initial commit Jan 29, 2017
README.md Fixed typo in README.md Jan 24, 2019

README.md

Open a Folder in Visual Studio Code

The macOS service

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 this service, your project folders can be opened from both the Terminal and the Finder.

  1. Install the Shell Command: Install 'code' command in PATH in VS Code.
  2. Download the Automator service from this repository. This is a macOS service which opens a given folder from the Finder in VS Code.
  3. Open the service and choose Install.

Install the service from the Finder

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.

Open folder in Visual Studio Code as a service

Original blog post

Changing the code

If you want to edit your own version of this service, clone or download the repository and follow these instructions.