Author Topic: Folding of Functions in the IDE  (Read 2337 times)

Offline Havard

  • Mc. Print
  • *
  • Posts: 19
    • View Profile
Folding of Functions in the IDE
« on: 2009-Aug-06 »
Can you or would it be possible to make it so you can fold functions in the IDE - just giving the title of the funciton.  ONce you have a working function it could then be compressed - this makes your code much easier to read.  Have used this before in another basic IDe and it was really helpful as I find following code can be really hard as it grows.

Offline Havard

  • Mc. Print
  • *
  • Posts: 19
    • View Profile
Re: Folding of Functions in the IDE
« Reply #1 on: 2009-Aug-07 »
Are you saying what I think you are saying about my coding... :whistle:

Offline Havard

  • Mc. Print
  • *
  • Posts: 19
    • View Profile
Re: Folding of Functions in the IDE
« Reply #2 on: 2009-Aug-07 »
You're not the only one to point this out to me..

http://www.glbasic.com/forum/index.php?topic=3267.0

I muddle through...

Offline PeeJay

  • Mr. Polyvector
  • ***
  • Posts: 244
    • View Profile
    • PeeJays Remakes
Re: Folding of Functions in the IDE
« Reply #3 on: 2009-Aug-08 »
I'm another one who is a huge fan of code folding, but I have a workaround that I use (which may be helpful?)

During dev, I have 2 source files in the project - one for "working", and one that I dump completed functions into - that means that once I have a function done and working properly, I can move it out of the way, so I don't end up scrolling around hugs chunks of code ....
www.peejays-remakes.co.uk
For games, remakes, and GL Basic Tutorials
Artificial Intelligence is no match for Natural Stupidity

Offline Moru

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 1773
    • View Profile
    • Homepage
Re: Folding of Functions in the IDE
« Reply #4 on: 2009-Aug-08 »
Oh, nice tip PeeJay, never thought of that. Code-folding I had in GFAbasic but never realy like it since it still takes up space. And it made the editor crash now and then too :-)