The question says it all.
How can I call VS Code editor from
- windows cmd
- linux and mac terminal
e.g. for notepad++ I write
> start notepad++ test.txt
By the way, the editor is awesome (cross-platform)! Thank you Nadella!
You can download it from microsoft
Use the command
code /path/to/file/or/directory/you/want/to/open
to open your file in VS Code.On Windows and Linux the
code
command should be installed automatically. On macOS, it needs to be installed manually:Launch VS Code. Now open the Command Palette (F1) and type
shell command
to find theShell Command: Install 'code' command in PATH command
. Restart your terminal.