Ever wondered why isn’t there support for writing PowerShell scripts in Visual Studio? I have had several projects where I needed to integrate PowerShell scripts into a C# solution I created in Visual Studio. For this, I needed to use multiple editors – one for C# and another for PowerShell scripts. I am sure that I am not the only one looking for such integration between Visual Studio and PowerShell.
Adam Driscoll, a fellow PowerShell MVP, announced that he is working on PoshTools – a reincarnation of PowerGUIVSX. PoshTools is a Visual Studio extension to enable writing PowerShell scripts and supports full IntelliSense capabilities for PowerShell inside the Visual Studio Editor. This new integration has no dependency on PowerGUI editor.
This project is hosted on GitHub. Some of the features included in the initial release are:
- Syntax Highlighting
- Breakpoints (some known issues)
- Breakpoint window
- Locals window
- Call Stack window
- Output Window Support
- PowerShell Project Support
- New item templates for PS1, PSD1, and PSM1 files
Go head and explore! We will write a detailed review soon!