Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 1640: C#, function folding
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Uniwares
Tomato Guru

Portugal
2321 Posts

Posted - Jun 05 2008 :  5:01:30 PM  Show Profile  Reply with Quote
Already reported once that function folding is messing with syntax coloring, yet i just found another twist to it: multi-line function declarations.

When the function declaration is on one line only, the function name is colored in black, for multi-line declarations, only the last line is colored wrong (bold locals are also no longer bold)

e.g.:

public bool MyFunc1(String param1, int param2)
{
  return true;
}

public bool MyFunc2(String param1, 
  int param2,
  long param3)
{
 return true;
}

Dany
Senior Member

Germany
41 Posts

Posted - Jun 06 2008 :  12:54:19 AM  Show Profile  Reply with Quote
Have a look at this topic :
http://forum.wholetomato.com/forum/topic.asp?TOPIC_ID=7845

Cheers

Dany

// using VAX in C# of VS2010 SP1 (en), Win 7 SP1 (de)
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18942 Posts

Posted - Jun 06 2008 :  08:34:15 AM  Show Profile  Reply with Quote
case=15879

Folding the code is full of edge cases, especially when you start looking at different IDE's. As "expected" different IDE's sometimes fold code differently, just to make this really "easy" to fix.

zen is the art of being at one with the two'ness
Go to Top of Page

Uniwares
Tomato Guru

Portugal
2321 Posts

Posted - Jun 06 2008 :  08:36:34 AM  Show Profile  Reply with Quote
Now come on... with all the great and wonderful features working in VAX you desist on such small details? I cant believe that
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18942 Posts

Posted - Jun 06 2008 :  09:13:29 AM  Show Profile  Reply with Quote
Since our colouring is based around what is actually shown on the screen, we have to handle each different version of code folding separately, since each variation changes what is actually shown on the screen.

I know its an excuse, but its a good excuse

Plus with VA Outline who needs to fold their code?

zen is the art of being at one with the two'ness
Go to Top of Page

Uniwares
Tomato Guru

Portugal
2321 Posts

Posted - Jun 06 2008 :  09:21:13 AM  Show Profile  Reply with Quote
quote:
Originally posted by feline

Plus with VA Outline who needs to fold their code?



True, but actually this brings me an idea, why not "grey out text which does not belong to the current scope or function? That would be cool, i dont even need a "fade out" effect.

Serious, the outline is very nice, but i have a space problem on my screen, i need the solution explorer and the source window(s), so there is few space left to have the outline window open too. Alternative is buying a larger screen with a better video card (which is on the way anyway) or use other means, like folding.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18942 Posts

Posted - Jun 06 2008 :  2:22:59 PM  Show Profile  Reply with Quote
In my experience the monitor is never large enough

Fading out "other" code... I love this and hate it at the same time Thinking about this, my main reaction is what happens when I am working on two functions at once. This is something I do fairly often, when they are related, or one calls the other.

zen is the art of being at one with the two'ness
Go to Top of Page

Uniwares
Tomato Guru

Portugal
2321 Posts

Posted - Jun 06 2008 :  3:49:25 PM  Show Profile  Reply with Quote
Well then of course you have two choices:
1) VAX is smart enough to know that and keeps the last edited "area" of the "other function", ehm, unfogged? and floating around.
2) You have 2 monitors and VAX does its job on both monitors showing location one here and location two there.

or something like that

Actually i guess that there is still lots of room for improvements when working on two related but separated code parts. Split-Windows are definitely NOT the latest and greatest.

I could imagine things like ctrl-tabbing between them, kinds of overlays, folding of whats between them if they are in the same file, etc.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000