Skip to content

Latest commit

 

History

History
49 lines (29 loc) · 1.74 KB

README.md

File metadata and controls

49 lines (29 loc) · 1.74 KB

Alfred Workflow - Open in Visual Studio Code

An Alfred 4 workflow opening files or folders with Visual Studio Code.

Screenshot

Note: Alfred Powerpack is required to use workflows.

Installation

  1. Download the latest version
  2. Install the workflow by double-clicking the .alfredworkflow file
  3. You can add the workflow to a category, then click "Import" to finish importing. You'll now see the workflow listed in the left sidebar of your Workflows preferences pane.
  4. Make sure your Alfred workflow environment variables are set correctly

Example Alfred workflow environment variables

cli => /usr/local/bin/code
wds => /Users/nizari91/Development/http/app,/Users/nizari91/Development/http/vue

Screenshot

Usage

Just type code followed by your search query.

code <query>

Press <enter> to open the directory with your Visual Studio Code.

Change IDE Editor

You can easily change the IDE in which you open the folder by updating the cli execution path.

For example setting it to /usr/local/bin/subl will open your directory with Sublime.

Screenshot

Troubleshoot

Nothing happens?

In this case open the Alfred Debugger Utility and see what error is thrown. A common use case can be that your IDE execution file doesn't exist.

Screenshot