CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

CCS C Compiler editor collapse/expand

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
towpew



Joined: 25 Sep 2015
Posts: 24
Location: sweden

View user's profile Send private message

CCS C Compiler editor collapse/expand
PostPosted: Sun Jan 10, 2021 1:04 pm     Reply with quote

There are squares with + and - in the left margin.

I use them to collapse and expand code functions.

However every time I open up the Compiler again, all my collapsed
code are expanded again.

I have look for some settings for this but not find it, have I missed something or is it normal ?

//
E_Blue



Joined: 13 Apr 2011
Posts: 417

View user's profile Send private message

PostPosted: Sun Jan 10, 2021 3:12 pm     Reply with quote

Compiler? Did you mean the IDE?
Are you using MPLAB IDE or CCS IDE?
_________________
Electric Blue
Ttelmah



Joined: 11 Mar 2010
Posts: 19537

View user's profile Send private message

PostPosted: Mon Jan 11, 2021 1:15 am     Reply with quote

On the IDE, completely normal. There is nowhere for the collapse
information to actually be 'stored'. The project does not contain this.
It is just a 'utility' ability to make it easier to work with large sources,
but is lost whenever you leave the project.

Ask CCS, if they might consider adding an ability to save this.
There would need to be a new option to 'expand all', since otherwise
a file saved with sections collapsed could result in things being missed,
but being able to collapse away stuff you are not working on, and have this
collapse remembered, would potentially be an improvement. Smile
towpew



Joined: 25 Sep 2015
Posts: 24
Location: sweden

View user's profile Send private message

PostPosted: Mon Jan 11, 2021 7:56 am     Reply with quote

E_Blue wrote:
Compiler? Did you mean the IDE?
Are you using MPLAB IDE or CCS IDE?


I mean the CCS IDE
towpew



Joined: 25 Sep 2015
Posts: 24
Location: sweden

View user's profile Send private message

PostPosted: Mon Jan 11, 2021 7:58 am     Reply with quote

Ttelmah wrote:
On the IDE, completely normal. There is nowhere for the collapse
information to actually be 'stored'. The project does not contain this.
It is just a 'utility' ability to make it easier to work with large sources,
but is lost whenever you leave the project.

Ask CCS, if they might consider adding an ability to save this.
There would need to be a new option to 'expand all', since otherwise
a file saved with sections collapsed could result in things being missed,
but being able to collapse away stuff you are not working on, and have this
collapse remembered, would potentially be an improvement. Smile



Ok then I know. I will ask CCS later for this feature.
nickbd



Joined: 12 Jun 2013
Posts: 7

View user's profile Send private message

Being able to collapse sections would be really useful
PostPosted: Mon Feb 07, 2022 1:16 pm     Reply with quote

Would be really nice in the Editor to be able to collapse sections especially when developing code where there are many sections with either debugging code or alternate sections being tested. Also adding having the code start as collapsed when loaded could I assume be added to the project file along with the other settings and paths. In VS and I assume in other programming IDE's there are hot key combinations to collapse and expand.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group