Author |
Topic |
|
Uniwares
Tomato Guru
Portugal
2322 Posts |
Posted - Jun 05 2008 : 5:01:30 PM
|
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 |
|
feline
Whole Tomato Software
United Kingdom
19022 Posts |
Posted - Jun 06 2008 : 08:34:15 AM
|
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 |
|
|
Uniwares
Tomato Guru
Portugal
2322 Posts |
Posted - Jun 06 2008 : 08:36:34 AM
|
Now come on... with all the great and wonderful features working in VAX you desist on such small details? I cant believe that |
|
|
feline
Whole Tomato Software
United Kingdom
19022 Posts |
Posted - Jun 06 2008 : 09:13:29 AM
|
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 |
|
|
Uniwares
Tomato Guru
Portugal
2322 Posts |
Posted - Jun 06 2008 : 09:21:13 AM
|
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. |
|
|
feline
Whole Tomato Software
United Kingdom
19022 Posts |
Posted - Jun 06 2008 : 2:22:59 PM
|
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 |
|
|
Uniwares
Tomato Guru
Portugal
2322 Posts |
Posted - Jun 06 2008 : 3:49:25 PM
|
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. |
|
|
|
Topic |
|