<a href="https://i.stack.imgur.com/Wy0Z8.jpg" rel="nofollow"><img alt="this is the line i get when i did shell command in VS code" class="b-lazy" data-src="https://i.stack.imgur.com/Wy0Z8.jpg" data-original="https://i.stack.imgur.com/Wy0Z8.jpg" src="https://etrip.eimg.top/images/2019/05/07/timg.gif" /></a>
I get this error:<blockquote>
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 .Answer1:
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:<ul><li><strong>Shell Command: Install 'code' command in PATH</strong></li> </ul>
Run that, and it should install the
code command, after which you should be able to use it.
paste this into your terminal
export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"