Skip to content

Instantly share code, notes, and snippets.

@corbob
Last active December 24, 2023 09:01
Show Gist options
  • Save corbob/ac6c7a09f9e524a589d3f163558518a9 to your computer and use it in GitHub Desktop.
Save corbob/ac6c7a09f9e524a589d3f163558518a9 to your computer and use it in GitHub Desktop.
VSCode + PSReadline - How To Start Using the Alpha PowerShell Extension for PSReadline Goodness Now

VSCode + PSReadline - How To Start Using the Alpha PowerShell Extension for PSReadline Goodness Now

Courtesy of @scrthq from slack

Chatting on Twitter with @ctmcisco about this and figured it would be worth posting for everyone here, in case anyone else is curious!

  1. Go to the Branches tab on the vscode-powershell repo in GitHub: https://github.com/PowerShell/vscode-powershell/branches
  2. Find the 2.0.0 branch, then click the green check mark in the center of the page.
  3. Click the blue Details link next to the AppVeyor line. This will take you to the most recent AppVeyor build of that branch.
  4. On the top-right of the page, just above the console output, click the Artifacts tab.
  5. Click the PowerShell-insiders.vsix file to download it.
  6. Open Visual Studio Code, press F1 or [Ctrl|Cmd]+Shift+P to show the Command Pallet, then search for vsix. Select Extensions: Install from VSIX from the search results.
  7. Navigate to the VSIX file downloaded during Step 5, select it, then click the Install button to install it.
  8. Reload Code when asked.
  9. IMPORTANT: For PSReadline to work, you need to enable the PSReadline Developer Feature Flag in your settings. You can do this by adding the following to your Code Settings:
  "powershell.developer.featureFlags": [
        "PSReadLine"
    ]
  1. Reload the Code window or restart the PowerShell extension session to activate.
  2. Profit?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment