-
Run cmd or powershell as administrator.
-
Type
setx path "%path%;<YOUR VSCODE PATH>"
. -
Open new cmd or powershell and type 'code'.
-
Press enter.
-
Open new cmd or powershell and type 'code', the VS Code will be open up.
- Right click on your computer icon.
- click 'Properties'.
- click 'Advanced system settings', wait until The dialog 'System Properties' will be shown up.
- Navigate to 'Advanced' tab.
- On bottom right click button 'Environments Variables'.
- Select on variable 'path' of your system variable and click 'Edit' button.
- Click 'New' button' and place your VS Code path into it.
- Press 'OK'
- Open cmd or powershell and try to type 'code', the VS Code will be open up.
- Open your VS Code.
- Press Command + Shift + P.
- Type 'shell command'.
- Select
Install 'code command in PATH
.
Or you will setup it manual via https://code.visualstudio.com/docs/setup/mac.