I have a problem with eclipse's code style, here is the problem:
when I write an accessor or a modifier in C++ code, for example:
string GetName() { return name; }
then I press ctrl+shift+f and this line becomes:
string GetName() {
return name;
}
But I just want it to stay the way like:
string GetName() { return name; }
How can I configure that? In other words how can I configure so one line code can stay in one line after I press ctrl+shift+f
?
Expand the situation, how can I configure that in case of Java with eclipse?
Thank you!
Sincerely,