Updated
How to Open a Folder in VS Code from Finder on Mac
By Sindre Sorhus, who makes the Supercharge app
With Supercharge
- Open the settings of Supercharge, click “Tweaks”, and click “Configure…” next to “Context menu items”.
- In the “Main Menu” tab, turn on “Open in App”.
- Click the gear button next to “Open in App”, click the add button (+) below the list, and choose Visual Studio Code.
- 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
- Privacy
- No personal data collected
- License
- All your Macs
- Updated
- November 2026
- Gumroad rating
- 5.0/5 (288 ratings)
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:
- Open VS Code, and press ShiftCommandP to open the Command Palette.
- 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”. - In Terminal, go to the folder, and type
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.
