method seperators

Hi,

In the new company where I work we have a style guide that requires a method separator comment for each method. Does any one know of an intellij feature or plugin that i could use to do this? I have Re-arranger but for all it's greatness it does not provide this feature.

for example:
BEFORE
public void myMethod(){}

public void myMethod2(){}

AFTER
/----


public void myMethod(){}

/----


public void myMethod2(){}

thanks,
Florian

0
5 comments

Hello Florian,

Are there really any IDEs in existence which cannot display such separators
without having to embed them in source code, I wonder?

In the new company where I work we have a style guide that requires a
method separator comment for each method. Does any one know of an
intellij feature or plugin that i could use to do this? I have
Re-arranger but for all it's greatness it does not provide this
feature.

for example:
BEFORE
public void myMethod(){}
public void myMethod2(){}

AFTER
/---------------------------------------------------------------------
------ public void myMethod(){}

/---------------------------------------------------------------------
------ public void myMethod2(){}


--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Maybe it is to raise the line of code? ;)

0

hi,

I find it ridiculous as well, but so is our style guide! On the other hand having a style guide that is used is better then none!

florian

0

OMG...a style guideline like that would be enough for me to find a different job:-)

0

yeah... thanks for the support everyone :-p

There is plenty other stuff that is good here so i can live with the weird code style... just wish i could fully automate it.

flo

0

Please sign in to leave a comment.