code

code

TLDR

Open VS Code

$ code
copy

Open the current directory in VS Code

$ code .
copy

Open a file or directory in VS Code

$ code [path/to/file_or_directory]
copy

Open a file or directory in the currently open VS Code window

$ code --reuse-window [path/to/file_or_directory]
copy

Compare two files in VS Code

$ code -d [file1] [file2]
copy

Open VS Code with super user (sudo) permissions

$ sudo code [path/to/file_or_directory] --user-data-dir
copy

Copied to clipboard
Earn up to $40 for learning about crypto currencies