intellij-powershell
intellij-powershell copied to clipboard
Adds PowerShell language support to IntelliJ-based IDEs.
Consider this program: ``` [Console]::ForegroundColor = 'Green' echo 'hello' ``` When I run it via a plugin run configuration on my Mac, I see the following output: This result is...
Regular powershell completion works fine with the plugin (eg `Write-H`), but even namespace-cast .net objects don't provide completion for properties and methods. Consider: ```powershell [Void][Reflection.Assembly]::LoadWithPartialName("Microsoft.Web.Administration") $serverManager = [Microsoft.Web.Administration.ServerManager]::OpenRemote("127.0.0.1") ``` at...
Consider this script: ```powershell $xxx = Read-Host "foo" -AsSecureString ``` If you run it in an IDE terminal (or any terminal, for that matter) and type anything in response to...
```ps1 Get-Content ./query`(`).json | ForEach-Object {} # ^ , or expected, got '{' Get-Content ./query`(.json | ForEach-Object {} # ^ , or expected, got '{' Get-Content ./query.json | ForEach-Object {}...
```ps1 Get-Content ./query`(`).json | ForEach-Object { 1 } # ^ `{` unexpected Get-Content ./query`(.json | ForEach-Object {} # ^ `{` unexpected Get-Content ./query.json | ForEach-Object {} Get-Content query`(.json | ForEach-Object...
```powershell function foo { [Windows.UI.Notifications.ToastNotificationManager, Windows.UI.Notifications, ContentType = WindowsRuntime] > $null } ```  i have no idea what this is because i just pasted it [from here](https://gist.github.com/dend/5ae8a70678e3a35d02ecd39c12f99110), but it's...
This code ```ps1 Get-ChildItem ".\" -Recurse | Select-Object @{n = '1'; e = { $_.Name.Split(".")[0] } }, @{n = '2'; e = { $_.Name.Split(".")[1] } }, @{n = '3'; e...
It would be convenient if a template for creating module files exist
Let's investigate how that happens. For now I'm going to disable the test :(
_(Extracted from #34.)_ IntelliJ has an ability to **run inspection by name** and to show the inspections in the tree. We should perhaps fetch the available PSScriptAnalyzer inspections to run...