Formatting: whitespace after one-line comment

How can I set the idea-auto-formatter to add white-space afer one-line comment?

'//foo' should become '// foo'

We need it to be compatible with eclipse formatting (where this is enabled).


thanks.

4 comments

Hi Manuel,

I'm afraid IJ formatter doesn't offer such an option at the moment.

Feel free to submit corresponding request to the tracker.

Regards, Denis

0

If you can't wait, Jalopy supports this style - and both Eclipse and IDEA.

See http://www.triemax.com/products/jalopy/manual/comments.html

0

i filed a ticket http://youtrack.jetbrains.net/issue/IDEA-58488?projectKey=IDEA.

I will try without jalopy (not another tool to add...). For merging 'ignore whitespace' should help merging problems just because of this inconsistent formatting.

0

aldana wrote:

i filed a ticket http://youtrack.jetbrains.net/issue/IDEA-58488?projectKey=IDEA.

I will try without jalopy (not another tool to add...). For merging 'ignore whitespace' should help merging problems just because of this inconsistent formatting.


Ok, thanks.

I expect the feature to be done in a couple of weeks, so, you'll be able to get it at IJ X EAP.

Regards, Denis

0

Please sign in to leave a comment.