@@ -28,20 +28,26 @@ to get more details on how to use the extension on these platforms.
2828- Launch online help for the symbol under the cursor using ` Ctrl+F1 `
2929- Local script debugging and basic interactive console support!
3030
31- ## Example Scripts
31+ ## Quick Installation
3232
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:
3736
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
4139```
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)
4551```
4652
4753## Installing the Extension
@@ -61,6 +67,22 @@ code --install-extension PowerShell-<version>.vsix
6167
6268> NOTE: If you are using VS Code Insiders, the command will be ` code-insiders ` .
6369
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+
6486## Reporting Problems
6587
6688If you're having trouble with the PowerShell extension, please follow these instructions
0 commit comments