-
-
Save bangonkali/02ba0dc50aebca627fa68ff3a7325b8e to your computer and use it in GitHub Desktop.
sudo ln -s "/Applications/Visual Studio Code.app/Contents/MacOS/Electron" /usr/local/bin/code |
@bneutra what about changing the name ? "code" is too generic, i would prefer "vscode"
@bneutra what about changing the name ? "code" is too generic, i would prefer "vscode"
You can create symlink to the bin
sudo ln -s /Applications/Visual\ Studio\ Code.app/Contents/Resources/app/bin/code /usr/local/bin/vscode
@kreatimont It worked!
@bneutra what about changing the name ? "code" is too generic, i would prefer "vscode"
You can create symlink to the bin
sudo ln -s /Applications/Visual\ Studio\ Code.app/Contents/Resources/app/bin/code /usr/local/bin/vscode
@bneutra what about changing the name ? "code" is too generic, i would prefer "vscode"
You can create symlink to the bin
sudo ln -s /Applications/Visual\ Studio\ Code.app/Contents/Resources/app/bin/code /usr/local/bin/vscode
+1
Hi Guys, there is a better more standard way to do this now using the command palette.
Hi Guys, there is a better more standard way to do this now using the command palette.
What is it? @bangonkali?
I think best way is to use command palette in the vscode
For this to work a symbolic link file named code must be created in the /usr/local/bin folder:
Start Visual Studio Code:
Open the Command Palette(⇧⌘P) and type shell command
find the Shell Command: Install 'code' command in PATH command. Click Enter...
Adds a soft link to /Applications/Visual Studio Code.app/Contents/Resources/app/bin/code and places it in /usr/local/bin
don't do this. The path has changed (this works but randomly crashes), instead: (command palette => Shell Command: install to path)