forked from qt-creator/qt-creator
Make indentation/tabbing more developer friendly:
- when doing backspace, preserve the previous indentation litterally - when having auto-indentation turned off, simply repeat the previous indentation litterally instead of jumping to 0
This commit is contained in:
@@ -110,6 +110,12 @@ int TabSettings::firstNonSpace(const QString &text) const
|
||||
return i;
|
||||
}
|
||||
|
||||
QString TabSettings::indentationString(const QString &text) const
|
||||
{
|
||||
return text.left(firstNonSpace(text));
|
||||
}
|
||||
|
||||
|
||||
int TabSettings::trailingWhitespaces(const QString &text) const
|
||||
{
|
||||
int i = 0;
|
||||
|
||||
Reference in New Issue
Block a user