Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
Qt Creator 4.8.0-beta2
-
None
-
e9d0083ccd80c1edd09fb1dd5e97d48585b5507f (qt-creator/qt-creator/4.8)
Description
- Open e.g. codecompletionsextractor-test.cpp
- Put the cursor on the line that declares/defines the member "Document briefCommentDocument"
- Hit Ctrl+Alt+DownArrow to get a copy of that line in the next line
==> The copy is formatted and thus takes up 5 lines, instead of 1 as above:
Document briefCommentDocument{Utf8StringLiteral(TESTDATA_DIR"/complete_extractor_brief_comment.cpp"), compilationArguments, {}, documents}; Document briefCommentDocument{ Utf8StringLiteral(TESTDATA_DIR "/complete_extractor_brief_comment.cpp"), compilationArguments, {}, documents};
I think that when using this functionality, no formatting is intended, only indentation if at all.
Attachments
For Gerrit Dashboard: QTCREATORBUG-21459 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
245336,8 | ClangFormat: Do not format text but indent only | 4.8 | qt-creator/qt-creator | Status: MERGED | +2 | 0 |