// I am sick of having to insert line breaks when
// my comments reach 80 characters.
Ctrl+Shift+F doesn't wrap the comments.
Any clues?
Eclipse: Change the block comment style of ctrl+shift+/
You can't edit the default profiles so you have to hit New... and type a name like 'Eclipse 140 Line Width' for your profile and OK . Change the Maximum Line width from 80 to 140. Then OK your way out. If you then want to fix up your existing code, select your target code and use the Source > Format menu option.
There is a "Toggle Word Wrap" command hidden in the "Window > Editor" menu (default shortcut is Alt+Shift+Y). Or you can use the Quick Access bar: Ctrl+3, and type wrap.
It seems it is not possible. A shame, really.
Source: this mail from the CDT mailing list, dating April 2011 : http://dev.eclipse.org/mhonarc/lists/cdt-dev/msg21675.html
EDIT (March 2013)
It now seems possible, but only for /* this kind of comments */
.
Set the desired width in the formatter options, and trigger by
selecting your comment and pressing ctrl + shift + f.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With