Chris Paton
Chris Paton

Reputation: 5233

Why does the code . shortcut not work on OSX?

I've tried adding the 'code .' shortcut to launch your current directory in Terminal in Visual Studio Code, but I was promptly returned the following error:

LSGetApplicationForInfo() failed with error -10814 while trying to 
determine the application with bundle identifier com.microsoft.VSCode.

Visual Studio Code is installed on my machine successfully.

I'm using OSX Yosemite 10.10.3.

Does anybody know how to get this shortcut to work correctly?

Upvotes: 3

Views: 669

Answers (3)

tread
tread

Reputation: 11088

Press command + shift + p

Type: Install 'code' command in path

Choose the option

Upvotes: 0

Benjamin Pasero
Benjamin Pasero

Reputation: 123726

Make sure you have Visual Studio Code 0.3.0 installed. We recently changed the bundle identifier!

Upvotes: 3

natemcmaster
natemcmaster

Reputation: 26763

This error is because Finder cannot locate Visual Studio Code. I can reproduce the same error on my machine by deleting Visual Studio Code.

Try re-installing VS Code to /Applications and restarting Terminal.

Upvotes: 0

Related Questions