code
Verified for current stable LTS
Code Commands
Code command syntax with verified terminal examples.
Commands
8 commands for Code
code Operations
Code Command: Compare Two Files
code -d <path/to/file1> <path/to/file2> code Operations
Code Command: Display Diagnostic Information
code -s code Operations
Code Command: Install Or Uninstall Extension
code --<install|uninstall>-extension <publisher.extension> code Operations
Code Command: Open Files In New Window
code -n <path/to/file_or_directory1 path/to/file_or_directory2 ...> code Operations
Code Command: Open Specific Files Or Directories
code <path/to/file_or_directory1 path/to/file_or_directory2 ...> code Operations
Code Command: Print Installed Extensions With Versions
code --list-extensions --show-versions code Archive
Code Command: Start As Superuser With Specific Data Dir
sudo code --user-data-dir <path/to/directory> code Archive
Code Command: Start Visual Studio Code
code Suggest a Code Command
Submit missing workflows, corrections, or verified alternatives for this tool.
FAQ
Coverage: Focused examples for common Code workflows.
Verified version: current stable LTS.
Verification: Test commands in a disposable workspace and submit notes for edge cases.