issue with code completion and conditional statements

So I have my Coding Style set such that no space is placed after the 'if', 'while', and 'for' keywords before the open parenthesis.  So things should look like this:

bool foo = true;
bool bar = true;
while(foo) // no space after keyword
{
     if(bar) // no space after keyword
     {
          printf("hello world");
          foo = false;
     }
}

But whenever I start typing one of these conditional keywords and the autocomplete dialog appears (even if I finish typing the keyword myself) once I type the '(' the editor forces a space after the keyword.  So this is what I get:

while (foo) // unwanted space after keyword
{
     if (bar)
...

Has anyone else run into this issue and if so is there a solution or an open ticket that you know of?  Thanks.

0
1 comment

Rob,
there is indeed such a problem, please follow and vote for http://youtrack.jetbrains.com/issue/OC-4134.

0

Please sign in to leave a comment.