I get this error:
code .
is not recognised as an external or internal command, operable program or batch file
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.