Add “open with vscode” to your MAC context menu

Okba Boularaoui
2 min readNov 3, 2021

--

I’m tired of every time I go to a folder and open a terminal there, then typing the famous command: `code .`

so I decided to add it to the context menu like in Windows, I tried what I found when I googled but it’s not working (or may be outdated). This method is tested with the latest version of VSCODE but I think it would works with all versions.

let’s get started, first open Automator.
1. choose ‘files or folders
2. choose ‘Finder
3. change the icon if you like, you can download it by clicking here.
4. select ‘as arguments
5. enter this command:
`/usr/local/bin/code “$1”`

and that’s it, try to open any folder in the context menu.

Inspired by these articles:

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

No responses yet

Write a response