[PSS 2015] Minor Autocomplete / Primal Sense Tweaks

Post feature requests, product enhancement ideas, and other product-specific suggestions here. Do not post bug reports.
Forum rules
Do not post any licensing information in this forum.
This topic is 8 years and 2 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
Bosparan
Posts: 290
Last visit: Fri Oct 08, 2021 11:59 am

[PSS 2015] Minor Autocomplete / Primal Sense Tweaks

Post by Bosparan »

Hi guys,

two more minor tweaks have come up:

Primal Sense in ValidateScript
When manually typing a validate script on a parameter block, $_ refers to the parameter after type-coercion. Thus it would make sense to provide primal sense for it.

Autocomplete on .NET Types
When I'm typing a .NET type with braces (e.g. when casting or as parameter type constraint), autocomplete will finish the type and close the brace. This is a bit bothersome when I want to create an array of the type.
So I thought ... how about adding a function key to autocomplete to array instead?

e.g ("|" is - as usual - the cursor location):
  1. # As we type (Proposes: System.String)
  2. [System.Str |
  3.  
  4. # Autocomplete with ENTER
  5. [System.String]
  6.  
  7. # Autocomplete with ALT + ENTER
  8. [System.String[]]
Cheers,
Bosparan
This topic is 8 years and 2 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked