Commandline Options
code -w
- Wait for the files to be closed before returning.
code -n
- Force to open a new window.
code .
- Opens a new empty window.
code -r
- Reuse window. Force to open in an already opened window.
code -a
- Add folder(s) to the last active window.
code -g --goto <file:line[:character]>
- Open a file at a specific line number.
Get-ChildItem | code -
- Opens the output of the command in VS Code.