java - Intellij code formatting, keep /*package*/ on the same line -


in cases makes lot of sense use package visibility methods.
convention, put /* package */ comment in place of modifier in order make clear intentional :

/* package */ int getspan() {       return mspan;  } 

however, intellij automatic formatting keeps putting comment on separate line ... final methods :/ .
there way configure formatting occurrences of comment left on same line ?

i had similar issue in intellij scala code following:

import executioncontext.implicits.global // todo use own execution context 

was getting formatted into:

import executioncontext.implicits.global  // todo use own execution context 

i managed stop happening ticking comment @ first column under keep when formatting:

enter image description here


Comments

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

Nuget pack csproj using nuspec -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -