Skip to content

Add steps for using the PowerShell extension for v3 and v4 #5617

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 36 additions & 0 deletions reference/docs-conceptual/components/vscode/using-vscode.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,42 @@ functioning properly. If you still have issues getting started, let us know on
> constrained language mode. Please see the [GitHub issue tracking that support](https://github.com/PowerShell/vscode-powershell/issues/606)
> for more information.

### Using an older version of the PowerShell Extension for Windows PowerShell v3 and v4

Although the current PowerShell extension [stopped supporting v3 and v4](https://github.com/PowerShell/vscode-powershell/issues/1310),
you can still use the last version of the extension that did.

> [!NOTE]
> There will be no additional fixes to this older version of the extension. It's provided "AS IS" but
> is available for you if you are still using Windows PowerShell v3 and Windows PowerShell v4.

First, open the Extension pane and search for `PowerShell`. Then click the gear and select
**Install another version...**.

![Install another version...](media/using-vscode/install-another-version.png)

Then select the **`2020.1.0`** version. This version of the extension was the last version to support
v3 and v4.

Also, add the following setting so that your extension version doesn't update automatically:

```json
{
"extensions.autoUpdate": false
}
```

Although this will work in the forseeable future,
Visual Studio Code could implement a change that breaks this version of the extension.
Because of this, and lack of support, we highly recommend either:

- Downloading PowerShell 7 - which is a side-by-side install to Windows PowerShell and works
the best with the PowerShell extension
- Upgrading to Windows PowerShell 5.1

The [Editing with Visual Studio Code](#editing-with-visual-studio-code) section in this article
links to where to install these.

### Choosing a version of PowerShell to use with the extension

With PowerShell Core installing side-by-side with Windows PowerShell, it's now possible to use a
Expand Down