Skip to main content



      Home
Home » Modeling » TMF (Xtext) » Horstmann style formatter(Java code style)
Horstmann style formatter [message #1314514] Fri, 25 April 2014 08:16 Go to next message
Eclipse UserFriend
I want to format java code according to the Horstmann style

en.wikipedia.org/wiki/Indent_style#Horstmann_style

In this style the first statement of a block is on the same line as the opening brace.
while (x == y)
{ something();
somethingelse();
//...
if (x < 0)
{ printf("Negative");
negative(x);
}
else
{ printf("Non-negative");
nonnegative(x);
}
}
finalthing();

How to configure the formatter to do this?
Re: Horstmann style formatter [message #1316015 is a reply to message #1314514] Sat, 26 April 2014 04:22 Go to previous message
Eclipse UserFriend
HI,

this question is a bit to general to give an answer.
do you have any specific questions?
Previous Topic:scoping, auto complete and validation
Next Topic:Reference elements from a different file
Goto Forum:
  


Current Time: Thu Jul 03 11:54:13 EDT 2025

Powered by FUDForum. Page generated in 0.20208 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top