Get a list of your VS Code workspaces in alfred
- Type
vscinto alfred to get a list - Works with local and remote workspaces
- Scan custom project directories in addition to recent workspaces
Forked from https://github.com/kbshl/alfred-vscode
Blogpost: https://hartenfeller.dev/blog/alfred-vscode-workflow
You need code added to shell path: https://code.visualstudio.com/docs/setup/mac#_launching-from-the-command-line
You need a currently maintained Node.js version.
npm install --global @phartenfeller/alfred-vscode-workspacesYou can configure additional directories to scan for projects. All first-level subdirectories will be listed as available workspaces.
- Open Alfred Preferences → Workflows
- Right-click on "VSCode Workspaces" and select "Configure..."
- In the "Project Directories" field, add your project folders (one per line):
~/Projects
~/Work
~/GitHub
Projects from these directories will be merged with your recent VS Code workspaces (duplicates are automatically removed).
