View unanswered posts | View active topics It is currently Sat Aug 08, 2020 5:25 pm






Reply to topic  [ 6 posts ] 
collapse functions in IDE 
Author Message
Rookie

Joined: Fri Oct 31, 2014 10:47 pm
Posts: 15
Post collapse functions in IDE
I have used IDE's before which had the option to hide function contents.
To clarify this a bit if I am developing some code and have written a function which is finished the IDE let me collapse down the function to show just the declaration with a + sign to the left when scrolling through the code. this means when you are jumping from a function you are working on to another function in the code you don't have to scroll through hundreds of lines of code constantly.

hope I explained it properly.

anyway the question is. Does robot C have this functionality and if so how do I use it ?


Wed Nov 12, 2014 10:57 am
Profile
Site Admin
Site Admin
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3654
Location: Rotterdam, The Netherlands
Post Re: collapse functions in IDE
Ah, you mean code folding? It's on the roadmap but not with a specific timeline. We have tentative plans to replace the current editor with this component: http://www.scintilla.org/, but that is a LOT of work, as you can imagine :) It has all the features that we'd love to see in an editor, including, but not limited to, code folding. Make sure you check out the screenshot they made of an example editor using this component, it's quite cool.

= Xander

_________________
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]


Thu Nov 13, 2014 12:56 am
Profile WWW
Rookie

Joined: Fri Oct 31, 2014 10:47 pm
Posts: 15
Post Re: collapse functions in IDE
"code folding" an elegant way to describe what took me about 100 words.

as a new user I am delighted with the IDE and robot C.

on reflection the absence of code folding functionality may in fact be a bonus. because I have to keep scrolling past so much code it is forcing me to look again at the finished functions to see if I can simplify the code and make it more efficient at the same time. Maybe the implementation of code folding would lead to lazy inefficient code?

to coin a new phrase "fold and forget"

views ?


Thu Nov 13, 2014 7:55 pm
Profile
Site Admin
Site Admin
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3654
Location: Rotterdam, The Netherlands
Post Re: collapse functions in IDE
See, "code folding" is a nice way to fold a 100 word description into just two :)

I like code folding and it's OK to forget about certain help functions, IMHO. It's a nice way to hide code you're happy with and that doesn't need any more work, so you can focus without distraction on new code. For example, one of the Linux firmware source files I work for ROBOTC for EV3 with quite big, about ~5600 lines long, it's a real blessing that I can fold some of the code, while I scroll around in it :)

That said, most people using ROBOTC don't create files that large, with the exception of perhaps some of the advanced FTC teams.

= Xander

_________________
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]


Fri Nov 14, 2014 1:38 am
Profile WWW
Novice

Joined: Tue Dec 11, 2012 9:19 pm
Posts: 58
Post Re: collapse functions in IDE
mightor wrote:
Ah, you mean code folding? It's on the roadmap but not with a specific timeline. We have tentative plans to replace the current editor with this component: http://www.scintilla.org/, but that is a LOT of work, as you can imagine :) It has all the features that we'd love to see in an editor, including, but not limited to, code folding. Make sure you check out the screenshot they made of an example editor using this component, it's quite cool.

= Xander


Does Scintilla have vi emulation? Cause that's what I really want.


Fri Nov 14, 2014 7:57 pm
Profile
Site Admin
Site Admin
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3654
Location: Rotterdam, The Netherlands
Post Re: collapse functions in IDE
I have no idea, but if it did, it's mostly likely in the documentation :)

= Xander

_________________
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]


Sat Nov 15, 2014 1:00 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 6 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


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 post attachments in this forum

Search for:
Jump to:  
cron



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.