[MonoDevelop] Re: Reformat source file

Jacob Ilsø Christensen jacobilsoe at gmail.com
Wed Jun 8 17:24:44 EDT 2005


Hi.

Ok, here is what I plan to do:

1) Parse the file currently viewing.
2) Traverse the built AST in parallel with traversing the file.
3) Indent a specific line according to what level and what item is
currently looked at in the AST.

Does this sound like a way to do it? Do we want such a feature in MD?

/Jacob

On 6/2/05, Jacob Ilsø Christensen <jacobilsoe at gmail.com> wrote:
> Hi.
> 
> Has anyone been looking at some functionality to reformat a source
> code file? I guess one could use the parser and add/remove tabs from
> each line according to the parse information? I thought of just pretty
> printing the parse tree, but that will change the code which probably
> is not a good solution. :-)
> 
> /Jacob
>


More information about the Monodevelop-list mailing list