Can Eclipse be convinced to line-wrap comments in C++?
// I am sick of having to i开发者_StackOverflownsert line breaks when
// my comments reach 80 characters.
Ctrl+Shift+F doesn't wrap the comments.
Any clues?
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.
It is possible, but tricky
In your new code style profile, set "Maximum line width" from 80 to 1000.
Eclipse will not allow you modifying existing code style profile, you have to create new one.
精彩评论