code <name...>

Visual Studio Code

Arguments

NameDescription
namefilepaths, folders

Options

NameDescription
-d, --diff <file> <file>Compare two files with each other
-a, --add <folder...>Add folder(s) to the last active window
-g, --goto <file:line[:character]>Open a file at the path on the specified line and character position
-n, --new-windowForce to open a new window
-r, --reuse-windowForce to open a file or folder in an already opened window
-w, --waitWait for the files to be closed before returning
--locale <locale>The locale to use (e.g. en-US or zh-TW)
--user-data-dir <dir>Specifies the directory that user data is kept in. Can be used to open multiple distinct instances of Code
-h, --helpPrint usage
--extensions-dir <dir>Set the root path for extensions
--list-extensionsList the installed extensions
--category <category>Filters installed extensions by provided category, when using --list-extensions
--show-versionsShow versions of installed extensions, when using --list-extensions
--install-extension <extension-id[@version] | path-to-vsix>Installs or updates the extension. The identifier of an extension is always `${publisher}.${name} Use `--force` argument to update to latest version. To install a specific version provide `@${version}`. For example: 'vscode.csharp@1.2.3'
--uninstall-extension <extension-id>Uninstalls an extension
--enable-proposed-apiEnables proposed API features for extensions. Can receive one or more extension IDs to enable individually
-v, --versionPrint version
--verbosePrint verbose output (implies --wait)
--log <level>Log level to use. Default is 'info' when unspecified
-s, --statusPrint process usage and diagnostics information
--prof-startupRun CPU profiler during startup
--disable-extensionsDisable all installed extensions
--disable-extension <extension-id>Disable an extension
--sync <sync>Turn sync on or off
--inspect-extensions <port>Allow debugging and profiling of extensions. Check the developer tools for the connection URI
--inspect-brk-extensions <port>Allow debugging and profiling of extensions with the extension host being paused after start. Check the developer tools for the connection URI
--disable-gpuDisable GPU hardware acceleration
--max-memory <memory>Max memory size for a window (in Mbytes)
--telemetryShows all telemetry events which VS code collects