How do I separate elseif in Code Style?

I can choose how things are spaced in everything I like but elseif, I like else and if separated. How do I do that?

7 comments
Comment actions Permalink

Hello,

There is no option to do this as "elseif" and "else if" are the same things.

If you would like to change "elseif" to "else if" and vice versa project-wide, you can use Edit > Find > Replace in Path.

You can also submit the feature request to our tracking system here: <http://youtrack.jetbrains.com/issues/WI#newissue=yes>.
You will be able to receive the answer directly from our developers while other users will be able to write their opinion of your proposal.

0
Comment actions Permalink

Them being the same thing (functionally) is a nonsensical reason for forcing "elseif" on the users with no option for a preference of "else if", as "for (" is the same thing as "for(" but the program still allows an option to choose a preference.

0
Comment actions Permalink

I agree on this.

But, again, without a feature request there won't be an implementation of this.

I am sure that "for("/"for (" has been introduced in the same way.

0
Comment actions Permalink

I'm fine filing a feature request, I'm just saying that the reason you gave for there not being the option is nonsensical, so if you're agreeing I'm not sure why it was left as an answer.

0
Comment actions Permalink

Not an answer, but just a part of discussion. :-)
Solution with replacing over the project is simply a workaround.

0
Comment actions Permalink

Whether it's an answer or just part of the discussion, it's not good reasoning.

Replacing over the project is also replaced by any new auto-formatting done, so that's merely grinding gears.

I've already filed a feature request, though this seems like a no-brainer with all of the other preference formatting options there; I've seen "else if" as many times as I've seen "for (".

0
Comment actions Permalink

Apologies for any inconvenience that could take a part - request is opened so we shall wait and vote on this one.

0

Please sign in to leave a comment.