Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » How come my Eclipse automatically wraps the line?
How come my Eclipse automatically wraps the line? [message #221783] Mon, 16 July 2007 18:11 Go to next message
Eclipse UserFriend
Originally posted by: www.nospam.net

Hi,

Eclipse automatically wrap one long line into next line, for example,

myObject.callMethod(); //was like that

//now becomes:
myObject.
callMethods();

Another example:

statement; //this is a line comment

//becomes:
statement; //this is
//a line
//comment


How can I configure it so this does not happen? Thank you very much.
Re: How come my Eclipse automatically wraps the line? [message #221791 is a reply to message #221783] Mon, 16 July 2007 18:16 Go to previous message
Eclipse UserFriend
Originally posted by: hendrik_maryns.despammed.com

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

www schreef:
> Hi,
>
> Eclipse automatically wrap one long line into next line, for example,
>
> myObject.callMethod(); //was like that
>
> //now becomes:
> myObject.
> callMethods();
>
> Another example:
>
> statement; //this is a line comment
>
> //becomes:
> statement; //this is
> //a line
> //comment
>
>
> How can I configure it so this does not happen? Thank you very much.

I would very much doubt Eclipse does this automatically. It is part of
the source formatter, invoked by Ctrl+Shift+f. You can fine-tune it
under Window->Preferences-> Java->Code Style->Formatter

H.
- --
Hendrik Maryns
http://tcl.sfs.uni-tuebingen.de/~hendrik/
==================
http://aouw.org
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGm7Yae+7xMGD3itQRAoGlAJsFkaRn6w6XjFpfmYRMmlYw8+DnMQCd HixG
/tgmoFr/qp/6wDn8reL0cjM=
=qCUU
-----END PGP SIGNATURE-----
Previous Topic:HTTP proxy with URL
Next Topic:JAVA_HOME autodetection - where does the value get saved
Goto Forum:
  


Current Time: Fri Apr 26 03:45:05 GMT 2024

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

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

Back to the top