powershell.md

 1---
 2title: PowerShell
 3description: "Configure PowerShell language support in Zed, including language servers, formatting, and debugging."
 4---
 5
 6# PowerShell
 7
 8PowerShell language support in Zed is provided by the community-maintained [Zed PowerShell extension](https://github.com/wingyplus/zed-powershell). Please report issues to: [github.com/wingyplus/zed-powershell/issues](https://github.com/wingyplus/zed-powershell/issues)
 9
10- Tree-sitter: [airbus-cert/tree-sitter-powershell](https://github.com/airbus-cert/tree-sitter-powershell)
11- Language Server: [PowerShell/PowerShellEditorServices](https://github.com/PowerShell/PowerShellEditorServices)
12
13## Setup
14
15### Install PowerShell 7+ {#powershell-install}
16
17- macOS: `brew install powershell/tap/powershell`
18- Alpine: [Installing PowerShell on Alpine Linux](https://learn.microsoft.com/en-us/powershell/scripting/install/install-alpine)
19- Debian: [Install PowerShell on Debian Linux](https://learn.microsoft.com/en-us/powershell/scripting/install/install-debian)
20- RedHat: [Install PowerShell on RHEL](https://learn.microsoft.com/en-us/powershell/scripting/install/install-rhel)
21- Ubuntu: [Install PowerShell on RHEL](https://learn.microsoft.com/en-us/powershell/scripting/install/install-ubuntu)
22- Windows: [Install PowerShell on Windows](https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-windows)
23
24The Zed PowerShell extension will default to the `pwsh` executable found in your path.
25
26### Install PowerShell Editor Services (Optional) {#powershell-editor-services}
27
28The Zed PowerShell extensions will attempt to download [PowerShell Editor Services](https://github.com/PowerShell/PowerShellEditorServices) automatically.
29
30If want to use a specific binary, you can specify in your that in your Zed settings.json:
31
32```json [settings]
33  "lsp": {
34    "powershell-es": {
35      "binary": {
36        "path": "/path/to/PowerShellEditorServices"
37      }
38    }
39  }
40```