@@ -28,20 +28,26 @@ to get more details on how to use the extension on these platforms.
28
28
- Launch online help for the symbol under the cursor using ` Ctrl+F1 `
29
29
- Local script debugging and basic interactive console support!
30
30
31
- ## Example Scripts
31
+ ## Quick Installation
32
32
33
- There are some example scripts in the extension's ` examples ` folder that you can
34
- use to discover PowerShell editing and debugging functionality. Please
35
- check out the included [ README.md] ( examples/README.md ) file to learn more about
36
- how to use them.
33
+ If you're on Windows 7 or greater with the [ PowerShellGet] ( https://msdn.microsoft.com/powershell/gallery/readme )
34
+ module installed, you can easily install both Visual Studio Code and the PowerShell
35
+ extension by running the following command:
37
36
38
- This folder can be found at the following path:
39
- ```
40
- c:\Users\<yourusername>\.vscode\extensions\ms-vscode.PowerShell-<version>\examples
37
+ ``` powershell
38
+ Install-Script Install-VSCode -Scope CurrentUser; Install-VSCode.ps1
41
39
```
42
- To open/view the extension's examples in Visual Studio Code, run the following from your PowerShell command prompt:
43
- ```
44
- code (Get-ChildItem $Home\.vscode\extensions\ms-vscode.PowerShell-*\examples)[-1]
40
+
41
+ You will need to accept the prompts that appear if this is your first time running
42
+ the ` Install-Script ` command.
43
+
44
+ ** Alternatively** you can download and execute the script directly from the web
45
+ without the use of ` Install-Script ` . However we ** highly recommend** that you
46
+ [ read the script] ( https://github.com/PowerShell/vscode-powershell/blob/develop/scripts/Install-VSCode.ps1 )
47
+ first before running it in this way!
48
+
49
+ ``` powershell
50
+ iex (iwr https://git.io/v9rJg)
45
51
```
46
52
47
53
## Installing the Extension
@@ -61,6 +67,22 @@ code --install-extension PowerShell-<version>.vsix
61
67
62
68
> NOTE: If you are using VS Code Insiders, the command will be ` code-insiders ` .
63
69
70
+ ## Example Scripts
71
+
72
+ There are some example scripts in the extension's ` examples ` folder that you can
73
+ use to discover PowerShell editing and debugging functionality. Please
74
+ check out the included [ README.md] ( examples/README.md ) file to learn more about
75
+ how to use them.
76
+
77
+ This folder can be found at the following path:
78
+ ```
79
+ c:\Users\<yourusername>\.vscode\extensions\ms-vscode.PowerShell-<version>\examples
80
+ ```
81
+ To open/view the extension's examples in Visual Studio Code, run the following from your PowerShell command prompt:
82
+ ```
83
+ code (Get-ChildItem $Home\.vscode\extensions\ms-vscode.PowerShell-*\examples)[-1]
84
+ ```
85
+
64
86
## Reporting Problems
65
87
66
88
If you're having trouble with the PowerShell extension, please follow these instructions
0 commit comments