If you reformat the code with shift-ctrl-f does it stay formatted that way? If so, you clearly have something amiss in your formatting settings, otherwise your quirky brace style is likely confusing things.
When I do that it goes back to the formatted way and looks correct but CTRL + It still doesn't work properly.



