"code ." command is not working

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 .

Paste this into your terminal:

export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"

in windows problem is with insiders version of VSC. You can use 'code-insiders .' command or make a copy of 'code-insiders.cmd' file as 'code.cmd' inside folder with code-insider (use 'path' command to see where your VSC is installed)

After installation, you need to restart your computer to make the PATH changes effective. Post restart, the command worked for me.

I find it : In search type environment variables click edit the system environment variables . environment variables->Path->put 'C:\Users{username}\AppData\Local\Programs\Microsoft VS Code\bin' .

go to a project folder open cmd with it typing in the location bar and then type code . .

That will do!!!!