I get this error:
code .
is not recognised as an external or internal command, operable program or batch file
moreover shell commands are not coming in my compiler VS code neither do setx path "%path%;C:\Program Files\Microsoft VS Code" is working in command prompt .
I found it. In the "search" type environment variables
then click on the "edit system environment variables".
Inside Environment variables->Path
put C:\Users\{your_username}\AppData\Local\Programs\Microsoft VS Code\bin
.
Go to the project folder and open the cmd
with it typing in the location bar and then type code .
That will do.
It looks as if you do not have the code
program installed. You can open the Command Palette,
And search "install command", which should return this as one of the options:
Run that, and it should install the code
command, after which you should be able to use it.
For Mac OS,
You can paste this into your terminal, or in your .bashrc
file (or whatever shell config file you are using) :
export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With