Create an empty project, add a main.cpp file in it, try a simple piece of code, compile it, save the project, and then close it.
Reopen it, press Ctrl-A to highlight all source code, start typing main and wait for 5 seconds; now press the tab to accept the auto-completion suggestion and see that adds space instead of parentheses.