diff --git a/src/plugins/texteditor/autocompleter.cpp b/src/plugins/texteditor/autocompleter.cpp index 6a48718a20d..dccd5ecda3d 100644 --- a/src/plugins/texteditor/autocompleter.cpp +++ b/src/plugins/texteditor/autocompleter.cpp @@ -104,6 +104,8 @@ static QString surroundSelectionWithBrackets(const QString &textToInsert, const replacement = selection + QLatin1Char(')'); } else if (textToInsert == QLatin1String("[")) { replacement = selection + QLatin1Char(']'); + } else if (textToInsert == QLatin1String("<")) { + replacement = selection + QLatin1Char('>'); } else if (textToInsert == QLatin1String("{")) { //If the text spans multiple lines, insert on different lines replacement = selection;