Search code examples
qtqt-creatorbracketscurly-braces

QT Creator doesn't automatically add the closing curly bracket after while, for, if and else if statements


I've been tinkering with qt creator but it seems I must've missed the setting which enables this feature which is included in every other IDE out there. Essentially after an if, else if, for or while statement's condition, I press enter and automatically indents and after inserting the left curly bracket it doesn't automatically add the right one. Is it possible to enable a setting to automatically add the second one?


Solution

  • Alright, I found out the closing bracket is automatically added after pressing enter. I hope this helps anyone facing the same issue in the future.