I get this error:
code . is not recognised as an external or internal command, operable program or batch file
code .
After installation, you need to restart your computer to make the PATH changes effective. Post restart, the command worked for me.