Blank line after function/class definition
Answered
hello there,
when defining a function , the default function body looks like this :
void myFunction() {
BODY
}
but i want it to look like this instead :
( a blank line just after the definition starting bracket, and one blank line before the definition ending bracket )
void myFunction(){
BODY
}
I've looked in Code Style > Blank Lines, but found nothing useful about this
Thanks
Please sign in to leave a comment.
Hello!
In Code Style > Blank Lines > Minimum Blank Line there is a Before function body option. You can set it to 1 in order to have a blank line just after the definition starting bracket.
And here is a feature request about adding a After method body option: https://youtrack.jetbrains.com/issue/IDEA-166844. Feel free to comment or upvote.
Thank you for the link Anna. I upvoted and hope this feature will be implemented soon.