tag:blogger.com,1999:blog-106449775438946661.post1764109655384364548..comments2024-03-19T05:14:38.879-07:00Comments on Overcoming Fear: Eclipse Test Oriented TemplatesTim Myerhttp://www.blogger.com/profile/01514263555690798238noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-106449775438946661.post-72352966825078417212010-01-05T08:06:40.111-08:002010-01-05T08:06:40.111-08:00Hi xpmatteo,
Thanks for the feedback.
This is ...Hi xpmatteo,<br /><br />Thanks for the feedback. <br /><br />This is an interesting question but it is more about the code formatter than about the template itself. You have a couple of options that I can see. <br /><br />1. Disable automatic code formatting for your templates (by unchecking the "Use code formatter" box on the bottom of the templates preference page).<br /><br />2. Modify Preferences -> Java -> Code Style -> Formatter -> Edit... -> Blank Lines -> Before first declaration: -> 0. <br /><br />(2.) would be my preference since I automatically format using save actions anyway.<br /><br />If you find another way, let me know.<br />I hope that helps!<br />---Tim---Tim Myerhttps://www.blogger.com/profile/01514263555690798238noreply@blogger.comtag:blogger.com,1999:blog-106449775438946661.post-30786031095452479212010-01-05T07:42:05.761-08:002010-01-05T07:42:05.761-08:00Hi, this is really useful! I only have a problem:...Hi, this is really useful! I only have a problem: when I fire the "checking" template, I get <br /><br /> context.checking(new Expectations() {<br /> {<br /><br /> }<br /> });<br /><br />is there a way to tell Eclipse not to start a new line after the first "{" ?xpmatteohttps://www.blogger.com/profile/16626755265235840659noreply@blogger.com