forked from qt-creator/qt-creator
add ':' to electric keys for C++ indenting, and check for electric keys anywhere on line, not just at beginning
This commit is contained in:
@@ -842,7 +842,8 @@ bool CPPEditor::isElectricCharacter(const QChar &ch) const
|
||||
{
|
||||
if (ch == QLatin1Char('{') ||
|
||||
ch == QLatin1Char('}') ||
|
||||
ch == QLatin1Char('#')) {
|
||||
ch == QLatin1Char('#') ||
|
||||
ch == QLatin1Char(':')) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user