Enable Tab Completion in VSCode for a PowerShell ISE like Experience

I’m using VSCode for all of my PowerShell development at this point. I reloaded my system from scratch on March 13th of this year. Yesterday was the first time I’ve opened the PowerShell ISE since then and it was only to determine if something worked differently between the two (I tweeted this out yesterday).

One of the common problems I hear about and have experienced myself with VSCode (Visual Studio Code) is that tabbed expansion of command and parameter names doesn’t work like it does in the ISE (Integrated Scripting Environment). That’s because tab completion is disabled by default in VSCode. Enabling it gives you a much more ISE like experience and prevents tabbing away from half completed PowerShell command and parameter names before intellisense kicks in.

There’s a Microsoft article on “How to replicate the ISE experience in Visual Studio Code” that provides a more comprehensive list of VSCode options to set for a smoother transition from the PowerShell ISE to VSCode.

µ

2 Comments

  1. Josh (Windos) King (@WindosNZ)

    For those like me that still use JSON to change your VS Code settings, the setting is:

    “editor.tabCompletion”: “on”

    As I said on Twitter, thanks so much for pointing this out, Mike!

    Reply
  2. artisticcheese

    I don’t see a difference between this setting on or off. What exactly does it add. After I type say Get-ScheduledJob and then – it will cycle through available parameters as expected with or without this

    Reply

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: