Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Word wrap entering comments in Java?
Word wrap entering comments in Java? [message #141083] Wed, 01 March 2006 20:13 Go to next message
David M. Karr is currently offline David M. KarrFriend
Messages: 143
Registered: July 2009
Senior Member
I guess I would call myself a somewhat reluctant Eclipse user. I've been
an Emacs user for over 20 years, and I still find it easier and more
flexible for raw coding.

One set of features I like in Emacs that I don't see (yet) in Eclipse is
the ability for comment entry to be more like a word processor, where it
does word wrap on the print margin (inserting the proper prefixes on the
next line), and even allows rejustification of an edited comment block.

In Eclipse, I can have the print margin drawn, and newlines in block
comments insert the proper prefix, but that appears to be all you get in
this area.

Is there any way to enable features in Eclipse that come close to what I'm
used to with Emacs?

I'm currently on Eclipse 3.1.2.
Re: Word wrap entering comments in Java? [message #141117 is a reply to message #141083] Thu, 02 March 2006 09:10 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: newsgroups.pellaton.li

Hi

Some of the things you are looking for are done when 'reformatting' the
comment:

1) select the block comment
2) [Ctrl]+[Shift]+[F]

Michael

David Karr wrote:
> I guess I would call myself a somewhat reluctant Eclipse user. I've been
> an Emacs user for over 20 years, and I still find it easier and more
> flexible for raw coding.
>
> One set of features I like in Emacs that I don't see (yet) in Eclipse is
> the ability for comment entry to be more like a word processor, where it
> does word wrap on the print margin (inserting the proper prefixes on the
> next line), and even allows rejustification of an edited comment block.
>
> In Eclipse, I can have the print margin drawn, and newlines in block
> comments insert the proper prefix, but that appears to be all you get in
> this area.
>
> Is there any way to enable features in Eclipse that come close to what I'm
> used to with Emacs?
>
> I'm currently on Eclipse 3.1.2.
>
Re: Word wrap entering comments in Java? [message #141153 is a reply to message #141117] Thu, 02 March 2006 10:26 Go to previous messageGo to next message
Tom Hofmann is currently offline Tom HofmannFriend
Messages: 770
Registered: July 2009
Senior Member
Michael Pellaton wrote:
> Some of the things you are looking for are done when 'reformatting' the
> comment:
>
> 1) select the block comment
> 2) [Ctrl]+[Shift]+[F]

Alternatively:
- no need to select the block
- click Source > Format Element

(Defining a key binding for 'Format Element' helps, too)

-tom
Re: Word wrap entering comments in Java? [message #141197 is a reply to message #141153] Thu, 02 March 2006 14:40 Go to previous messageGo to next message
David M. Karr is currently offline David M. KarrFriend
Messages: 143
Registered: July 2009
Senior Member
Ok, thanks, those are both useful.

Is anyone aware of any plans to implement word wrap while typing in
comments?
Re: Word wrap entering comments in Java? [message #141219 is a reply to message #141197] Thu, 02 March 2006 16:57 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse3.rizzoweb.com

David Karr wrote:
> Ok, thanks, those are both useful.
>
> Is anyone aware of any plans to implement word wrap while typing in
> comments?
>

Search Bugzilla: http://bugs.eclipse.org/bugs
If you don't find such a request, please enter one.

Eric
Re: Word wrap entering comments in Java? [message #141274 is a reply to message #141219] Thu, 02 March 2006 18:00 Go to previous message
David M. Karr is currently offline David M. KarrFriend
Messages: 143
Registered: July 2009
Senior Member
Thanks for the reminder. Bug 35779 ("[misc] Text Viewer and Editor needs
to support word wrap") was created almost 3 years ago, and discussion on
this bug has been going on ever since then. At least it's on the radar.
Previous Topic:Plugins and features not recognised?
Next Topic:Show variable in debugger?
Goto Forum:
  


Current Time: Fri Apr 26 13:16:41 GMT 2024

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

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

Back to the top