Dont automatically expand functions

This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
Forum rules
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 2 years and 8 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.
User avatar
GHIsolierung
Posts: 62
Last visit: Tue Nov 02, 2021 12:46 am

Dont automatically expand functions

Post by GHIsolierung »

The question is of a fundamental nature and concerns the behavior of Powershell Studio itself.

Functions and code that are summarized with a plus sign are always automatically expanded for me.
This is very annoying, especially when copying functions to another location.
Even if functions are located within a region (e.g. region functions), this is always expanded.
Is it possible to change this behavior?
I want functions and code in curly brackets to always stay collapsed, except when I want to expand it.
Greetings
User avatar
brittneyr
Site Admin
Posts: 1655
Last visit: Thu Mar 28, 2024 3:14 pm
Answers: 39
Been upvoted: 30 times

Re: Dont automatically expand functions

Post by brittneyr »

Please do not post your Activation Key or any other licensing information in this forum. I have removed your screenshot.

As for collapsing regions, check the Collapse regions on load (Options->Editor) setting in options:
SPS_OptionsCollapseRegions.png
SPS_OptionsCollapseRegions.png (30.65 KiB) Viewed 8918 times
Brittney
SAPIEN Technologies, Inc.
User avatar
GHIsolierung
Posts: 62
Last visit: Tue Nov 02, 2021 12:46 am

Re: Dont automatically expand functions

Post by GHIsolierung »

Thanks for your help.

It was not clear for me, that parts of the picture was my activation key,
because there is only ..."Powershell Studio 9043858593493".

Ok, I will check this in the future.
User avatar
GHIsolierung
Posts: 62
Last visit: Tue Nov 02, 2021 12:46 am

Re: Dont automatically expand functions

Post by GHIsolierung »

Sorry, the problem is not solved for me.

If I start Powershell Studio the regions are collapsed - this is ok, but the functions are always expanded.
I want all my functions always collapsed unless I expand them myself.

I organize myself by outsourcing a lot of things to regions.
So if I have 10 functions in the region 'MyFunctions' and I want to work on a certain function, of course I don't want all functions to be expanded within this region.

Can you please help me in changing this behaviour?
deploy.psf.png
deploy.psf.png (32.48 KiB) Viewed 8836 times
User avatar
GHIsolierung
Posts: 62
Last visit: Tue Nov 02, 2021 12:46 am

Re: Dont automatically expand functions

Post by GHIsolierung »

I can see I'm going to have to help myself here.
#
User avatar
brittneyr
Site Admin
Posts: 1655
Last visit: Thu Mar 28, 2024 3:14 pm
Answers: 39
Been upvoted: 30 times

Re: Dont automatically expand functions

Post by brittneyr »

At the moment, PowerShell Studio will either collapse or collapse all regions.
You are welcome to make a feature request here:
https://www.sapien.com/requests
Brittney
SAPIEN Technologies, Inc.
This topic is 2 years and 8 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.