Why code. shortcut doesn't work on OSX?

I tried to add "code". shortcut to start your current directory in terminal in Visual Studio Code, but I immediately returned the following error:

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

      

Visual Studio Code installed successfully on my computer.

I am using OSX Yosemite 10.10.3.

Does anyone know how to use this shortcut correctly?

+3


source to share


3 answers


Make sure Visual Studio Code 0.3.0 is installed. We recently changed the bundle ID!



+3


source


This error is due to the Finder being unable to find Visual Studio Code. I can reproduce the same error on my machine by uninstalling the Visual Studio Code.



Try reinstalling VS Code on / Applications and restart your terminal.

0


source


Click command

+ shift

+p

A type: Install 'code' command in path

Select an option

0


source







All Articles