Skip to main content



      Home
Home » Newcomers » Newcomers » Wrapping long lines of expressions
Wrapping long lines of expressions [message #28412] Fri, 18 February 2005 08:23 Go to next message
Eclipse UserFriend
Originally posted by: flindaas.start.no

Hi,

I'm trying to setup the code formatting rules in Eclipse so that the
operator stays on the first line when a line is split.

Eclipse split the lines like this:

System.out.println("The answer: "
+ 42);

I want it too look like this:

System.out.println("The answer: " +
42);

Is it possible to setup Eclipse to do this? I can't find any options to
do this in either 3.0.1 or 3.1M4

--
Frode Lindås
flindaas@start.no
Re: Wrapping long lines of expressions [message #28456 is a reply to message #28412] Fri, 18 February 2005 09:24 Go to previous message
Eclipse UserFriend
Originally posted by: Chris_Laffra.ca.ibm.com

This is not possible with the standard formatters. I guess you already
looked at the Java preferences for formatting.

Note that you can write your own formatter using the
org.eclipse.jdt.core.codeFormatter extension point.

--
Chris Laffra, http://eclipsefaq.org


"Frode Lind
Previous Topic:missing separator in .d file (Eclipse 3.0.1 / OSX)
Next Topic:Description of Architecture
Goto Forum:
  


Current Time: Tue Sep 09 00:08:42 EDT 2025

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

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

Back to the top