View previous topic :: View next topic |
Author |
Message |
towpew
Joined: 25 Sep 2015 Posts: 24 Location: sweden
|
CCS C Compiler editor collapse/expand |
Posted: Sun Jan 10, 2021 1:04 pm |
|
|
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
|
|
Posted: Sun Jan 10, 2021 3:12 pm |
|
|
Compiler? Did you mean the IDE?
Are you using MPLAB IDE or CCS IDE? _________________ Electric Blue |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19537
|
|
Posted: Mon Jan 11, 2021 1:15 am |
|
|
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. |
|
|
towpew
Joined: 25 Sep 2015 Posts: 24 Location: sweden
|
|
Posted: Mon Jan 11, 2021 7:56 am |
|
|
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
|
|
Posted: Mon Jan 11, 2021 7:58 am |
|
|
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. |
Ok then I know. I will ask CCS later for this feature. |
|
|
nickbd
Joined: 12 Jun 2013 Posts: 7
|
Being able to collapse sections would be really useful |
Posted: Mon Feb 07, 2022 1:16 pm |
|
|
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. |
|
|
|