We always open the visual studio code editor on the current directory from terminal using this command (code .) BUT it is changed to (vscode .) and that is why it doesn’t work for you.
I hope this video helps you. Happy coding..
BLUEI's Internet Space