How to install Visual Studio Code and configure it as a replacement for the PowerShell ISE

If you follow me on Twitter, then I’m sure you’re aware that I’ve been using nothing but VS Code (Visual Studio Code) as a replacement for the PowerShell ISE (Integrated Scripting Environment) for the past couple of weeks and while I had tried it in the past, I didn’t previously think it was ready for prime time. That’s now changed with all of the updates and work that has gone into it. From what I’ve found, it works fairly well flawlessly so I’ve created a short and simple video to help others get VS Code installed and configured as a replacement for the PowerShell ISE.

Let me know what you think and if you’d like to see more videos from me.


Update - I decided to add a brief summary of the video based on some of the feedback I received.

Go to code.visualstudio.com and download VSCode (Visual Studio Code) for your operating system. I also recommend downloading the version that matches your operating system’s architecture (32 or 64 bit). I take all of the default options during the installation.

Install the PowerShell extension for VSCode. I also like to install the vscode-icons extension.

vscode-install1a.jpg

Once the extensions are installed, reload VSCode by clicking the Reload button:

vscode-install2a.jpg

Click on the Gear on the bottom left and select Settings:

vscode-install3a.jpg

Enter the following settings on the right side of the settings screen.

{
    "workbench.iconTheme": "vscode-icons",
    "workbench.colorTheme": "PowerShell ISE",
    "files.defaultLanguage": "powershell",
    "editor.formatOnType": true,
    "editor.formatOnPaste": true,
    "powershell.integratedConsole.focusConsoleOnExecute": false,
    "window.zoomLevel": 0,
    "editor.mouseWheelZoom": true
}

For more details, see the video:

ยต