code Command Examples

Cross platform and extensible code editor. More information: https://github.com/microsoft/vscode.

code

code {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}

code --diff {{path/to/file1}} {{path/to/file2}}

code --new-window {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}

code --{{install|uninstall}}-extension {{publisher.extension}}

code --list-extensions

code --list-extensions --show-versions

sudo code --user-data-dir {{path/to/directory}}