OptionsOn code itself
-
Read from stdin (e.g. 'ps aux | grep code | code -')
-d--diff
Compare two files with each other <file> <file>
-m--merge
Perform a three-way merge by providing paths for two modified versions of a file, the common origin of both modified versions and the output file to save merge results <path1> <path2> <base> <result>
-a--add
Add folder(s) to the last active window <folder>
-g--goto
Open a file at the path on the specified line and character position <file:line[:character]>
-n--new-window
Force to open a new window
-r--reuse-window
Force to open a file or folder in an already opened window
-w--wait
Wait for the files to be closed before returning
--locale
The locale to use (e.g. en-US or zh-TW) <locale>
--user-data-dir
Specifies the directory that user data is kept in. Can be used to open multiple distinct instances of Code <dir>
--profile
Opens the provided folder or workspace with the given profile and associates the profile with the workspace. If the profile does not exist, a new empty one is created. A folder or workspace must be provided for the profile to take effect <settingsProfileName>
--extensions-dir
Set the root path for extensions <dir>
--list-extensions
List the installed extensions
--show-versions
Show versions of installed extensions, when using --list-extensions
--category
Filters installed extensions by provided category, when using --list-extensions <category>
--install-extension
Installs or updates an extension. The argument is either an extension id or a path to a VSIX. The identifier of an extension is '${publisher}.${name}'. Use '--force' argument to update to latest version. To install a specific version provide '@${version}'. For example: 'vscode.csharp@1.2.3' <extension-id[@version] | path-to-vsix>
--pre-release
Installs the pre-release version of the extension, when using --install-extension
--uninstall-extension
Uninstalls an extension <extension-id>
--enable-proposed-api
Enables proposed API features for extensions. Can receive one or more extension IDs to enable individually
--verbose
Print verbose output (implies --wait)
--log
Log level to use. Default is 'info' when unspecified <level>
-s--status
Print process usage and diagnostics information
--prof-startup
Run CPU profiler during startup
--disable-extensions
Disable all installed extensions
--disable-extension
Disable an extension <extension-id>
--sync
Turn sync on or off <sync>
--inspect-extensions
Allow debugging and profiling of extensions. Check the developer tools for the connection URI <port>
--inspect-brk-extensions
Allow debugging and profiling of extensions with the extension host being paused after start. Check the developer tools for the connection URI <port>
--disable-gpu
Disable GPU hardware acceleration
--max-memory
Max memory size for a window (in Mbytes) <memory>
--telemetry
Shows all telemetry events which VS code collects