Android/Java end of line comment formatting

Hi,

The Formatter will always move an end-of-line comment to the next line, eg.

int i = 1;//comment

will be formatted to

int i = 1;
//comment

but I *really* want my comment to stay where it was, at the end of the line.

I'm sure it can be configured, but I just can't find the place. I've also been all over Google, these FAQ's, StackExchange, etc, and couldn't find the answer.

Regards,
Gerrit

2 comments
Comment actions Permalink

Hi, Gerrit!
Normally it should work as you want, and the behaviour you have seems to be a bug. Could you please, create a request to our issue tracker: https://youtrack.jetbrains.com/issues. Also attach there your code style settings: File | Export | Code Style.

0
Comment actions Permalink

@Gerrit @Yaroslav

I found the same problem for Scala with IDEA 3 and Scala plugins 3.5. 

Could you tell me how to solve? or the link of issue track links?

 

Regards,

Ma

0

Please sign in to leave a comment.