[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.
Locked
User avatar
Bosparan
Posts: 265
Joined: Sun Mar 03, 2013 12:45 pm

[PSS 2015] Minor Autocomplete / Primal Sense Tweaks

Post by Bosparan » Wed Jan 13, 2016 9:00 am

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.  
  3. [System.Str |
  4.  
  5.  
  6.  
  7. # Autocomplete with ENTER
  8.  
  9. [System.String]
  10.  
  11.  
  12.  
  13. # Autocomplete with ALT + ENTER
  14.  
  15. [System.String[]]
Cheers,
Bosparan

Locked