nikow
nikow

Reputation: 21548

How can I auto-fill a paragraph in Eclipse?

I would like to auto-fill a paragraph to 80 characters (or some other fixed width) in Eclipse. Is this possible via a keyboard command like in Emacs? Or is there maybe a plugin (I did not find anything on google)?

Edit: I am not sure if this is relevant, but I need this for docstrings in Python code (using the PyDev plugin).

Upvotes: 2

Views: 1434

Answers (2)

Fabio Zadrozny
Fabio Zadrozny

Reputation: 25342

You can wrap the paragraph in Pydev with Ctrl+2+w (see Pydev keybindings at: http://pydev.org/manual_adv_keybindings.html)

Upvotes: 6

Jon Skeet
Jon Skeet

Reputation: 1500855

Highlight the text, then press Ctrl-Shift-F, or open the context menu and select Source / Format.

Upvotes: 2

Related Questions