Details
-
Bug
-
Resolution: Fixed
-
P3: Somewhat important
-
Qt Creator 13.0.0-beta1
-
Ubuntu 22.04 LTS
-
02de46110 (13.0)
Description
- Have a block using braces in your code, e.g.:
int x = 0; if (argc > 3) { ++x; }
Please note that when you type in that code and press Return after "++x;", Creator inserts white space characters in the next line so you could go on typing with the expected indentation.
- Select "if".
- Right-click on the selection and select "Refactor" -> "Extract Function" from the context menu.
- Enter some name for the new function and click "OK".
The code is moved to a new function, but the line below "++x;" now contains twice as many white space characters as before.
The number of white spaces should not change. This worked correctly in Qt Creator 12.0.1.
Found and tested by Squish test tst_CSUP03.
Attachments
Issue Links
- relates to
-
QTCREATORBUG-30559 Renaming a symbol adds trash white space
- Closed
For Gerrit Dashboard: QTCREATORBUG-30244 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
535345,3 | TextEditor: Insert clang-format removal blocker at the end | 13.0 | qt-creator/qt-creator | Status: MERGED | +2 | 0 |