Re: [Pydev-code] Code Folding
Brought to you by:
fabioz
From: Aleks T. <a...@to...> - 2004-07-19 19:14:24
|
Neat. I've just checked it out, it works well. I've thought of adding code folding to 3.0 port. I have one small request: can you add a preference for enabling/disabling code folding to pydev editor. Java editor has one, and it is nice to have for consistency. What's the test case that fails for comments folding? I've tried folding a method whose last line was a comment, and it worked. A question about pass & Str tokens: How did you determine their end location: setEnd(new Location(astNode.beginLine-1, astNode.beginColumn + 22)); That 22 number must have some meaning? Aleks Fabio Zadrozny wrote: > Hi All, I'm adding some code-folding capabilities to our plugin... > > It's still not complete... but it should be until tomorrow... (I've already > commited most of it, so, it's already usable) > > There's only one bug I think I'll be unable to correct... > > If some class / method ends with a comment, I'm unable to get the correct > code folding for it (since our model doesn't get comments parsed) > > I've added 'pass' and Str > Tokens to our model, so that I could make it work correctly with them... > > If someone has some problem in code-folding or some idea on how to implement > it to work correctly with comments... I'm accepting suggestions... > > []s |