Stop Eclipse from mangling my comments -
Is there any way to prevent eclipse from engaging in comments in my source files?
My main issue is preventing them from wrapping the word. I have managed to configure Eclipse to wrap any code, but it is still doing this for comments.
I enter that code like this:
public int myVariable = 100; // This variable is a very interesting variable and it does a lot of things
ending like this:
public int myVariable = 100; // This variable // is a very // interesting // variable and // it's a lot of stuff /
Go to the "Window" menu -> Preferences - select the editor that you are interested in on the left-hand list. (Java for example)
Then there should be a sub-section "Code style", and under "Formatter".
Then you will need to create a new formatter profile (the underlying profile can not be edited) There are options for comment formatting on the last tab of the profile configuration
Comments
Post a Comment