| Re: [cdt-dev] Problems with code formatter and legacy code - whatis possible at all? |
|
Anton, thanks for your reply. I was on vacation, too... so again this
is a bit late. Leherbauer, Anton (Toni) wrote on 2009-04-15 10:44: Maybe it would be easier to change all the other indentations to a multiple of 2? But that#s not possible in the GUI at the moment, probably that would require some code changes, too? Do you have any pointers where in the code I could start to hack into this? It seems this is one of the main issues for us, as it changes every single line in a header file, which is not acceptable under revision control. Important point, thanks!Some general notes: Instead of formatting a complete file you can also format a selection. "Correct Indentation" (Ctrl+I) only changes leading whitespace. I've never used that, always use Sh-Ctrl-F. Maybe I should just instruct our team to use Ctrl-I only. That would solve halt of the problems. There is an extension point for that?You can contribute your own implementation of a formatter. Maybe we could chat a bit privately about that whole issue in German (phone or mail), it doesn't seem to be too much of value for the community... Thanks, Achim |