Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » disable line wrapping in formatter
disable line wrapping in formatter [message #257327] Tue, 11 November 2008 16:59
Eclipse UserFriend
I have tried many times (and hours) with Window | Preferences | Java |
Code Style | Formatter to create my own profile, but still unable to
prevent the line wrap on the methods.

Can someone help with the below problem?
Thanks


I want to format a method as a single line for 1 or 2 line statements:

public String getName() { return "jason"; }


but it keeps formatting as 3 lines as below which I don't like:

public String getName() {
return "jason";
}
Previous Topic:Is there a widget to display diffs for ASTNodes?
Next Topic:usinng System.exit() still requires return...
Goto Forum:
  


Current Time: Sun Apr 20 10:02:29 EDT 2025

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

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

Back to the top