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.

0
4 comments
Avatar
Permanently deleted user

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
Avatar
Permanently deleted user

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
Avatar
Permanently deleted user

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
Avatar
Permanently deleted user

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.