Intellisense for ENUMS

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
remkow
Posts: 7
Joined: Fri Jul 10, 2015 3:53 am

Intellisense for ENUMS

Post by remkow »

PowerShell studio doesn't offer completion/intellisense for enums, would it be possible to add this (similar to the screenshot below from PowerGUI Script Editor)?
2017-03-07_16-09-47.png
2017-03-07_16-09-47.png (49.34 KiB) Viewed 2005 times

User avatar
remkow
Posts: 7
Joined: Fri Jul 10, 2015 3:53 am

Re: Intellisense for ENUMS

Post by remkow »

And for switches, booleans etc

DevinL
Site Admin
Posts: 1098
Joined: Mon Aug 17, 2015 2:25 pm

Re: Intellisense for ENUMS

Post by DevinL »

Thank you for the suggestion.

We've added this to our list, and if we have some more information we'll post it here.
DevinL
SAPIEN Technologies, Inc.

Bosparan
Posts: 284
Joined: Sun Mar 03, 2013 12:45 pm

Re: Intellisense for ENUMS

Post by Bosparan »

Hi Remkow,

that is actually already possible with a slight 'workaround' (for me it's pretty much the standard approach, actually):
1) Compile your enumerations into a .dll
2) Add the dll to the file (using the "assembly" button)

It'll support your classes the same way it does default .net types.

Also, you are not receiving the rest of the Primal Sense, because you add the ":" behind the parameter. While that's legal, it's not necessary except for switch parameters. Use space instead and enjoy the Primal Sense. That you do not receive Primal Sense with ":" though might be a bug. Dunno, it's bad form anyway and not recommended to do so.

Cheers,
Fred

Locked