Skip to content
Sydney Smith edited this page Apr 4, 2019 · 12 revisions

Here are answers to some of the common asked questions about the PowerShell extension for Visual Studio Code:

Q. The syntax colorization of parts of my PowerShell do not seem correct. Where do I file an issue about this?
A. The syntax colorization for PowerShell is provided by the EditorSyntax project on GitHub. Please file issues related to syntax colorization on that project.

Q. I see incorrect code style warnings/problems. Where to report them?
A. If the warning message starts with [PSScriptAnalyzer], then please report it in the PSScriptAnalyzer repo here.

Q. How come PSReadline features like history recall don't work in the PowerShell Integrated Console.
A. Integration of PSReadline into the PowerShell Integrated Console is currently being worked on.

Q. How do I debug my PowerShell script
A. This topic is best covered in the following two Scripting Guys blog posts: Debugging PowerShell script in Visual Studio Code – Part 1 and Part 2

Q. How to enable Verbose Logging ?
A. To enable verbose logging open user settings (To open user settings, open the command palette and type user settings). Once your settings are open, search for powershell.developer.editorServicesLogLevel setting and set it to verbose.

Q. Why is my window (Get-Credential, Connect-MsolService, Connect-AzAccount, Connect-AzureAd, etc) not appearing?
A. Due to an issue in electron, windows spawned by Visual Studio Code do not appear above Visual Studio Code.

Clone this wiki locally