Install shortcut command for vscode
First, let’s do the shortcut CMD + SHIFT + P
(or CTRL + SHIFT + P
for Windows) and type code path which should make appear the following result:
Select the first option and your computer should prompt you with some administrator privileges — which is fine!
Now, open a new terminal to have the new path and type the command code -h
You should see the command working:
Open file or folder from the terminal
# Open current folder
code .
# Open specific file
code some-specific-file.js