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.
This topic is 7 years and 3 weeks 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
User avatar
remkow
Posts: 18
Last visit: Tue Jan 11, 2022 4:26 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 3214 times
User avatar
remkow
Posts: 18
Last visit: Tue Jan 11, 2022 4:26 am

Re: Intellisense for ENUMS

Post by remkow »

And for switches, booleans etc
DevinL
Posts: 1098
Last visit: Tue Jun 06, 2017 9:15 am

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: 290
Last visit: Fri Oct 08, 2021 11:59 am

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
This topic is 7 years and 3 weeks 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