- shortcutname|Full Type name
Hi Guys,
I've come to vent a bit on an old issue that really hurts the comfort of using PowerShell Studio for us:
Primal Sense's handling of autocomplete
Basically, the autocomplete functionality is driving me nuts, but it's too useful to go completely without.
Major points of irritation:
- Autocomplete turns powershell statements into cmdlets/functions
- Autocomplete turns accelerated types into cmdlets/functions
Typically recommended mitigation:
Configure autocomplete on exact match only. Which is about as good as killing autocomplete entirely and deprives us of all its benefits.
Usually used mitigation:
- Switch to PowerShell version 2 mode to reduce number of incidents.
- Curse frequently to vent steam
Everyday occurrences of issue:
- Every bloody time one wants to create a foreach ($a in $b) loop, it will turn foreach into foreach-object.
- Every bloody time one wants to create a [switch] typed parameter, it will turn it into the Switch-Certificate cmdlet (PKI Module)
- Every time one types "Begin" (for an advanced function), you end up with a WebAdministration cmdlet
- Most times we type "Process", we end up with Process-Data, one of our standard names for nested, non-published functions
Requested solution:
For autocomplete (but not Primal Sense) on functions, only start after there is a "-" in the string.
Example consequences:
- Autocomplete for Foreach-Object would then start at "ForEach-"
- Autocomplete for Switch-Certificate would then start at "Switch-"
This would - with a single change - permanently eliminate the problem with all PowerShell statements (which intentionally don't use "-" characters) and any type accelerator that is added by default for versions 2 through 5 so far.
So please, please, please do something about this. Not necessarily my solution (though I think it's an elegant way to do this), but this has been driving me borderline crazy for at least a year now.
Cheers and thanks for taking the time,
Bosparan
PS: Here's the previous request on the topic:
viewtopic.php?f=9&t=9056