You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: reference/docs-conceptual/components/vscode/using-vscode.md
+71-15Lines changed: 71 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -83,27 +83,83 @@ You are prompted with "Do you want to run software from this untrusted publisher
83
83
Type `R` to run the file. Then, open Visual Studio Code and check that the PowerShell extension is
84
84
functioning properly. If you still have issues getting started, let us know on [GitHub](https://github.com/PowerShell/vscode-powershell/issues).
85
85
86
-
#### Using a specific installed version of PowerShell
86
+
#### Choosing a version of PowerShell to use with the extension
87
87
88
-
If you wish to use a specific installation of PowerShell with Visual Studio Code, you need to add a new variable to your user settings file.
88
+
With PowerShell Core installing side-by-side with Windows PowerShell, is it now possible to a
89
+
particular version of PowerShell with the PowerShell extension. Use the following these steps to
90
+
choose the version:
89
91
90
-
1. Click **File -> Preferences -> Settings**
91
-
1. Two editor panes appear.
92
-
In the right-most pane (`settings.json`), insert the setting below appropriate for your OS somewhere between the two curly brackets (`{` and `}`) and replace **\<version\>** with the installed PowerShell version:
92
+
1. Open the command pallet (<kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>P</kbd> on Windows & Linux,
93
+
<kbd>Cmd</kbd>+<kbd>Shift</kbd>+<kbd>P</kbd> on macOS).
94
+
1. Search for "Session".
95
+
1. Click on "PowerShell: Show Session Menu".
96
+
1. Choose the version of PowerShell you want to use from the list - for example, "PowerShell Core".
> This feature looks at a few well-known paths on different operating systems to discover install
100
+
> locations of PowerShell. If you installed PowerShell to a non-typical location, it might not show
101
+
> up initially in the Session Menu. You can extend the session menu by [adding your own custom paths](#adding-your-own-powershell-paths-to-the-session-menu)
0 commit comments