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