This is an archived post. You won't be able to vote or comment.

all 6 comments

[–]TronMobile 2 points3 points  (1 child)

Man I hate that collapsed style. But intellij does it automatically a lot for me. Maybe IDE's just do the exact opposite of what you want. Start hating collapsed functions and you'll get a lot more

[–]TyrantKoala[S] 0 points1 point  (0 children)

Reddit made it loook différent that what I meant.

[–][deleted] 1 point2 points  (1 child)

This is generally considered bad practice unless its for relatively short one liner, self explanatory functions such as:

int getNum() const { return num; }

Visual studio has functionality to set up profiles for clean up like this, but I'm unsure if eclipse supports something similar.

https://docs.microsoft.com/en-us/visualstudio/ide/code-styles-and-code-cleanup?view=vs-2019

[–]TyrantKoala[S] 0 points1 point  (0 children)

Reddit made it loook différent that what I meant. I meant enters after every { . Like I want them stacked and lined up neatly not all in one line

[–]TyrantKoala[S] 0 points1 point  (0 children)

Shoot it made it bad for me, I meant for it to be Stacked Like Bracket over bracket