It's all about the answers!

Ask a question

Does RTC support formatting source before check-in or deliver?


Qunfeng Wang (421710) | asked Feb 14 '14, 3:04 a.m.
We'd like to force the code format in one place. I'm not sure if RTC has this feature.

Thanks.

Accepted answer


permanent link
Justin Spadea (661) | answered Feb 14 '14, 7:09 a.m.
 I'm not sure about RTC itself without writing some custom code, but if you're using the Eclipse client for Java development you can set up a variety of "save actions", including formatting source. Preferences > Java > Editor > Save Actions. Every developer would have to enable this setting though, and it doesn't apply to other types of source files.

-Justin
Qunfeng Wang selected this answer as the correct answer

One other answer



permanent link
Piotr Aniola (3.7k11738) | answered Feb 14 '14, 6:14 a.m.
I can't find a precondition like that.
The Deliver (client) action has a precondition "Require Static Analysis Run", which could probably be used to check formatting, but that only works for the Visual Studio client.

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.