Skip to content

Instantly share code, notes, and snippets.

@bergmeister
Last active September 18, 2018 21:26
Show Gist options
  • Save bergmeister/eef64622c278b3c4c7f3876e0b92fc9b to your computer and use it in GitHub Desktop.
Save bergmeister/eef64622c278b3c4c7f3876e0b92fc9b to your computer and use it in GitHub Desktop.
Install unofficial preview of PSReadline for VSCode (tested in Windows PowerShell 5.1)
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Invoke-Webrequest 'https://github.com/PowerShell/vscode-powershell/files/2377341/psvsix.zip' -OutFile 'out.zip';
Add-Type -AssemblyName System.IO.Compression.FileSystem;
[IO.Compression.ZipFile]::ExtractToDirectory("$($pwd.path)\out.zip", $pwd.path);
code --install-extension ./PowerShell-v2-extremely-alpha.vsix; # works also with code-insiders
Remove-Item ./PowerShell-v2-extremely-alpha.vsix;
Remove-Item ./out.zip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment