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

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -