Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
Qt Creator 3.1.0-beta
-
Windows 7 64 bit
ClangCodeModel disabled (default)
Description
- Have a minimal class in your code:
class C { };
- Place the cursor behind the opening brace and press Enter key.
class C { };
- Select all characters from the current cursor position up to, but not including, the opening brace.
- Press backspace.
class C { };
- Press Enter.
Creator will add another closing brace and a semicolon, making the code syntactically wrong:class C { }; };
Code completion should not introduce syntax errors. In this case, just a new line should be added.
This is a regression, it used to work correctly in Creator 3.0
Attachments
Issue Links
- replaces
-
QTCREATORBUG-11567 Regression: Extra brace is added for function when pressing Enter
- Closed