brew_install_visual-studio-code

brew install visual-studio-code

macOS

Homebrew on macOS

brew search visualstudio

=⇒ Casks

visual-studio

visual-studio-code

iMac ~ % brew install visual-studio-code

Running `brew update --auto-update`…

=⇒ Auto-updated Homebrew!

Updated 1 tap (homebrew/core).

=⇒ Downloading https://update.code.visualstudio.com/1.73.0/darwin/stable

=⇒ Downloading from https://az764295.vo.msecnd.net/stable/8fa188b2b301d36553cbc

=⇒ Installing Cask visual-studio-code

=⇒ Moving App 'Visual Studio Code.app' to '/Applications/Visual Studio Code.app

=⇒ Linking Binary 'code' to '/usr/local/bin/code'

🍺 visual-studio-code was successfully installed!

iMac ~ % pwd

/Users/USERNAME

iMac ~ % mkdir Coding

iMac ~ % cd Coding

iMac Coding % code .


iMac Coding % code --version

1.73.0

8fa188b2b301d36553cbc9ce1b0a146ccb93351f

x64


iMac Coding % code --help

Visual Studio Code 1.73.0

Usage: code [options][paths…]

To read from stdin, append '-' (e.g. 'ps aux | grep code | code -')

Options

 -d --diff                      Compare two files with each
                                            other.
 -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.
 -a --add                           Add folder(s) to the last active
                                            window.
 -g --goto           Open a file at the path on the
                                            specified line and character
                                            position.
 -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).
 --user-data-dir                       Specifies the directory that user
                                            data is kept in. Can be used to
                                            open multiple distinct instances
                                            of Code.
 --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.
 -h --help                                  Print usage.

Extensions Management

 --extensions-dir               Set the root path for extensions.
 --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.
 --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:
                                     '[email protected]'.
 --pre-release                       Installs the pre-release version of the
                                     extension, when using
                                     --install-extension
 --uninstall-extension       Uninstalls an extension.
 --enable-proposed-api       Enables proposed API features for
                                     extensions. Can receive one or more
                                     extension IDs to enable individually.

Troubleshooting

 -v --version                    Print version.
 --verbose                       Print verbose output (implies --wait).
 --log                    Log level to use. Default is 'info'. Allowed
                                 values are 'critical', 'error', 'warn',
                                 'info', 'debug', 'trace', 'off'. You can
                                 also configure the log level of an extension
                                 by passing extension id and log level in the
                                 following format:
                                 '${publisher}.${name}:${logLevel}'. For
                                 example: 'vscode.csharp:trace'. Can receive
                                 one or more such entries.
 -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.
 --sync                Turn sync on or off.
 --inspect-extensions      Allow debugging and profiling of extensions.
                                 Check the developer tools for the connection
                                 URI.
 --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.
 --disable-gpu                   Disable GPU hardware acceleration.
 --max-memory            Max memory size for a window (in Mbytes).
 --telemetry                     Shows all telemetry events which VS code
                                 collects.

Subcommands

 tunnel       Make the current machine accessible from vscode.dev or other
              machines through a secure tunnel
              

Linux

Visual Studio Code: brew install visual-studio-code, choco install vscode

Return to Visual Studio Code, visual-studio-code - brew install visual-studio-code, Visual Studio Code Installation, brew install visual-studio, brew install, Cloud Monk's Development PC DevOps Automation via Ansible-Chocolatey-PowerShell-Homebrew-DNF-APT, choco install vscode

macOS

Homebrew on macOS

brew search visualstudio

=⇒ Casks

visual-studio

visual-studio-code

iMac ~ % brew install visual-studio-code

Running `brew update --auto-update`…

Usage: code [options][paths…]

To read from stdin, append '-' (e.g. 'ps aux | grep code | code -')

Options

 -d --diff                      Compare two files with each
                                            other.
 -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.
 -a --add                           Add folder(s) to the last active
                                            window.
 -g --goto           Open a file at the path on the
                                            specified line and character
                                            position.
 -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).
 --user-data-dir                       Specifies the directory that user
                                            data is kept in. Can be used to
                                            open multiple distinct instances
                                            of Code.
 --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.
 -h --help                                  Print usage.

Extensions Management

 --extensions-dir               Set the root path for extensions.

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.
 --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:
                                     '[email protected]'.
 --pre-release                       Installs the pre-release version of the
                                     extension, when using
                                     --install-extension
 --uninstall-extension       Uninstalls an extension.
 --enable-proposed-api       Enables proposed API features for
                                     extensions. Can receive one or more
                                     extension IDs to enable individually.

Troubleshooting

 -v --version                    Print version.
 --verbose                       Print verbose output (implies --wait).
 --log                    Log level to use. Default is 'info'. Allowed
                                 values are 'critical', 'error', 'warn',
                                 'info', 'debug', 'trace', 'off'. You can
                                 also configure the log level of an extension
                                 by passing extension id and log level in the
                                 following format:
                                 '${publisher}.${name}:${logLevel}'. For
                                 example: 'vscode.csharp:trace'. Can receive
                                 one or more such entries.
 -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.
 --sync                Turn sync on or off.
 --inspect-extensions      Allow debugging and profiling of extensions.
                                 Check the developer tools for the connection
                                 URI.
 --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.
 --disable-gpu                   Disable GPU hardware acceleration.
 --max-memory            Max memory size for a window (in Mbytes).
 --telemetry                     Shows all telemetry events which VS code
                                 collects.

Subcommands

 tunnel       Make the current machine accessible from vscode.dev or other
              machines through a secure tunnel
              

(navbar_visual_studio_code - see also navbar_visual_studio)

Homebrew: Cloud Monk's Package Manager Book Homebrew Chapter, Cloud Monk's Development PC DevOps Automation via Ansible-Chocolatey-PowerShell-Homebrew-DNF-APT, Homebrew Glossary, Homebrew Fundamentals, Homebrew Inventor - Homebrew Designer: Mike McQuaid, Brew DevOps - Homebrew on macOS - macOS DevOps - MacOps, Homebrew on Linux - Linux DevOps - LinuxOps, Homebrew Automation, Idempotent, Refreshenv, Homebrew Topics, macOS Package Managers, Package managers, macOS Configuration Management, PowerShell on macOS Ansible on macOS, Chef on macOS, Puppet on macOS (navbar_brew - see also navbar_choco, navbar_package_manager)


Cloud Monk is Retired (for now). Buddha with you. © 2005 - 2024 Losang Jinpa or Fair Use. Disclaimers

SYI LU SENG E MU CHYWE YE. NAN. WEI LA YE. WEI LA YE. SA WA HE.


brew_install_visual-studio-code.txt · Last modified: 2022/11/07 21:31 by 127.0.0.1