mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-24 02:48:17 +02:00
136 lines
8.6 KiB
Markdown
136 lines
8.6 KiB
Markdown
## install-vscode.ps1 - Installs Visual Studio Code, the PowerShell extension, and optionally
|
|
a list of additional extensions.
|
|
|
|
This script can be used to easily install Visual Studio Code and the
|
|
PowerShell extension on your machine. You may also specify additional
|
|
extensions to be installed using the -AdditionalExtensions parameter.
|
|
The -LaunchWhenDone parameter will cause VS Code to be launched as
|
|
soon as installation has completed.
|
|
|
|
Please contribute improvements to this script on GitHub!
|
|
|
|
https://github.com/PowerShell/vscode-powershell/blob/master/scripts/Install-VSCode.ps1
|
|
|
|
## Parameters
|
|
```powershell
|
|
C:\Users\Markus\Repos\PowerShell\Scripts\install-vscode.ps1 [[-Architecture] <String>] [[-BuildEdition] <String>]
|
|
[[-AdditionalExtensions] <String[]>] [-LaunchWhenDone] [-EnableContextMenus] [-WhatIf] [-Confirm] [<CommonParameters>]
|
|
|
|
Erforderlich? false
|
|
Position? 1
|
|
Standardwert 64-bit
|
|
Pipelineeingaben akzeptieren?false
|
|
Platzhalterzeichen akzeptieren?false
|
|
|
|
Erforderlich? false
|
|
Position? 2
|
|
Standardwert Stable-System
|
|
Pipelineeingaben akzeptieren?false
|
|
Platzhalterzeichen akzeptieren?false
|
|
|
|
Erforderlich? false
|
|
Position? 3
|
|
Standardwert @()
|
|
Pipelineeingaben akzeptieren?false
|
|
Platzhalterzeichen akzeptieren?false
|
|
|
|
Erforderlich? false
|
|
Position? named
|
|
Standardwert False
|
|
Pipelineeingaben akzeptieren?false
|
|
Platzhalterzeichen akzeptieren?false
|
|
|
|
Erforderlich? false
|
|
Position? named
|
|
Standardwert False
|
|
Pipelineeingaben akzeptieren?false
|
|
Platzhalterzeichen akzeptieren?false
|
|
|
|
Erforderlich? false
|
|
Position? named
|
|
Standardwert
|
|
Pipelineeingaben akzeptieren?false
|
|
Platzhalterzeichen akzeptieren?false
|
|
|
|
Erforderlich? false
|
|
Position? named
|
|
Standardwert
|
|
Pipelineeingaben akzeptieren?false
|
|
Platzhalterzeichen akzeptieren?false
|
|
|
|
[<CommonParameters>]
|
|
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
|
|
WarningVariable, OutBuffer, PipelineVariable, and OutVariable.
|
|
```
|
|
|
|
## Example
|
|
```powershell
|
|
PS C:\>Install-VSCode.ps1 -Architecture 32-bit
|
|
|
|
|
|
|
|
Installs Visual Studio Code (32-bit) and the powershell extension.
|
|
|
|
```
|
|
|
|
## Example
|
|
```powershell
|
|
PS C:\>Install-VSCode.ps1 -LaunchWhenDone
|
|
|
|
|
|
|
|
Installs Visual Studio Code (64-bit) and the PowerShell extension and then launches
|
|
|
|
the editor after installation completes.
|
|
|
|
```
|
|
|
|
## Example
|
|
```powershell
|
|
PS C:\>Install-VSCode.ps1 -AdditionalExtensions 'eamodio.gitlens', 'vscodevim.vim'
|
|
|
|
|
|
|
|
Installs Visual Studio Code (64-bit), the PowerShell extension, and additional
|
|
|
|
extensions.
|
|
|
|
```
|
|
|
|
## Example
|
|
```powershell
|
|
PS C:\>Install-VSCode.ps1 -BuildEdition Insider-User -LaunchWhenDone
|
|
|
|
|
|
|
|
Installs Visual Studio Code Insiders Edition (64-bit) to the user profile and then launches the editor
|
|
|
|
after installation completes.
|
|
|
|
```
|
|
|
|
## Notes
|
|
This script is licensed under the MIT License:
|
|
|
|
Copyright (c) Microsoft Corporation.
|
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
of this software and associated documentation files (the "Software"), to deal
|
|
in the Software without restriction, including without limitation the rights
|
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
copies of the Software, and to permit persons to whom the Software is
|
|
furnished to do so, subject to the following conditions:
|
|
|
|
The above copyright notice and this permission notice shall be included in all
|
|
copies or substantial portions of the Software.
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
SOFTWARE.
|
|
|
|
*Generated by convert-ps2md.ps1 using the comment-based help of install-vscode.ps1*
|