forked from qt-creator/qt-creator
ClangFormat: Introduce check to format code instead of indenting
Ctrl+I with the new check will reformat the selected code or the current line instead. Change-Id: Ia5a72c4a09621034d0dfe463f669fe1ca36b0b5f Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io> Reviewed-by: Marco Bubke <marco.bubke@qt.io>
This commit is contained in:
@@ -89,7 +89,7 @@ public:
|
||||
Indenter *indenter() const;
|
||||
void autoIndent(const QTextCursor &cursor, QChar typedChar = QChar::Null);
|
||||
void autoReindent(const QTextCursor &cursor);
|
||||
void autoFormat(const QTextCursor &cursor);
|
||||
void autoFormatOrIndent(const QTextCursor &cursor);
|
||||
QTextCursor indent(const QTextCursor &cursor, bool blockSelection = false, int column = 0,
|
||||
int *offset = nullptr);
|
||||
QTextCursor unindent(const QTextCursor &cursor, bool blockSelection = false, int column = 0,
|
||||
|
||||
Reference in New Issue
Block a user