How can I auto-fill a paragraph in Eclipse?
-
22-07-2019 - |
Question
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).
Solution
You can wrap the paragraph in Pydev with Ctrl+2+w (see Pydev keybindings at: http://pydev.org/manual_adv_keybindings.html)
OTHER TIPS
Highlight the text, then press Ctrl-Shift-F, or open the context menu and select Source / Format.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow