Skip to Content
Sindre Sorhus
Back to Supercharge

Updated

How to Open a Folder in VS Code from Finder on Mac

By Sindre Sorhus, who makes the Supercharge app

With Supercharge

  1. Open the settings of Supercharge, click “Tweaks”, and click “Configure…” next to “Context menu items”.
  2. In the “Main Menu” tab, turn on “Open in App”.
  3. Click the gear button next to “Open in App”, click the add button (+) below the list, and choose Visual Studio Code.
  4. Right-click a folder in Finder, or an empty area of the folder that is open, and choose “Open in Visual Studio Code”.

You can add other apps too, like another code editor or an image editor. Each app shows only for the items that it can open, and a code editor also shows for text files.

The right-click items cannot show in synced folders, like iCloud Drive and Dropbox.

Get Supercharge

Elevate your Mac experience

$20, one-time purchase, plus tax where applicable

Requires
macOS 27 or later
Updated
November 2026
Gumroad rating
5.0/5 (288 ratings)

More about Supercharge

Without an app

Drag the folder onto the icon of Visual Studio Code in the Dock or in the Applications folder. Or install the code command:

  1. Open VS Code, and press ShiftCommandP to open the Command Palette.
  2. Type shell command, and choose “Shell Command: Install ‘code’ and optionally ‘copilot’ commands in PATH”. When the AI features of VS Code are off, it is “Shell Command: Install ‘code’ command in PATH”.
  3. In Terminal, go to the folder, and type code ..

The instructions of VS Code.

For an item in the right-click menu, make a shortcut in the Shortcuts app with the “Open File” action, and set it to open in Visual Studio Code. Then turn on “Use as Quick Action” in the details of the shortcut. The item is then in the “Quick Actions” submenu. Supercharge needs no shortcut, and shows the item at the top level of the menu.