Alfred 3 workflow that allows you to browse and open Visual Studio Code projects or simply open specified folders/files
Alfred 3 workflow that allows you to browse and open Visual Studio Code (Insiders) projects or simply open specified folders/files.
You need
npm install --global alfred-vscode
Note for Insiders Edition users:
Remember to set the
vscodeEditionvariable to
code-insidersin the Workflow Configuration!
Note for VSCodium users:
Remember to set the
vscodeEditionvariable to
codiumin the Workflow Configuration!
It defaults to
code.
Simply type
vscfollowed by space to list all projects. Optionally type a query to search for a specific project or group. The overall list shows 100 projects at max.
Select a project and press Enter to open it in VS Code or Code Insiders.
Hold Alt when pressing Enter to open the project path in Terminal - You can set the terminal app in the Workflow variables view.
Hold Shift when pressing Enter to open the project path in Finder.
Type
vsfollowed by space and search for a specific folder or file to open in Visual Studio Code.
Hold Shift when pressing Enter to open that folder or file in a new VS Code window.
Big Thanks goes to Cloudstek for his Alfred Atom Workflow which I used as a base for this project.