Hi,
I was wondering if someone would have already written a valid configuration to "fix" TM2 so that it does not mess up source code and comment indentation (C, C++) when Doxygen-style comments are used to comment the code, i.e.
/** * Some doc * @param[in] … */ void foo(void)…
results in:
/** * Some doc * @param[in] … */ void foo(void)…
Alternatively, is there an easy way to tell TM2 not to re-indent a line automatically, ie. let TM2 to indent a new line once, while preventing it from re-indenting forever whenever a new character is typed on an already-fixed line.
Thanks, Manu
On Nov 30, 2012, at 15:17, Emmanuel Blot eblot.ml@gmail.com wrote:
I was wondering if someone would have already written a valid configuration to "fix" TM2 so that it does not mess up source code and comment indentation (C, C++) when Doxygen-style comments are used to comment the code, i.e.
/**
- Some doc
- @param[in] …
*/ void foo(void)…
results in:
/**
- Some doc
- @param[in] …
*/ void foo(void)…
Not sure exactly when you type what — in C++ the indent patterns are changed for comment blocks, and if I press return after the @param line, then it does not increase indent.
Alternatively, is there an easy way to tell TM2 not to re-indent a line automatically, ie. let TM2 to indent a new line once, while preventing it from re-indenting forever whenever a new character is typed on an already-fixed line.
You can disable the automated indentation by making a new settings item, scoped to the language, containing:
{ disableIndentCorrections = :true; }