As known, there is a "smart_indent" option in Sublime Text. However I have recently found this intent option un-smart when I wanted to change the style of indentation.↵
↵
E.g., when I type a ↵
↵
```cpp↵
for(int i=1;i<=n;i++)↵
cin>>a[i];↵
```↵
↵
I'd prefer ↵
↵
```cpp↵
for(int i=1;i<=n;i++)cin>>a[i];↵
```↵
↵
But the "smart_indent" option would do this↓ when I change into my preference of the sentence:↵
↵
```cpp↵
for(int i=1;i<=n;i++)cin>>a[i];↵
int x;↵
```↵
↵
I mean it would still insert a tab when I press "Enter". Worse yet, if I backspaced that tab and finish the second line and press enter again, the third line would backspace a tab automatically.↵
↵
That's really annoying isn't it, so I switched off the smart_indent option, wishing it would no longer produce that tab.↵
↵
However, things get worse. Nothing would happen when I enter the second line, but a tab would still be backspaced on the third line!↵
↵
Confused, I came here for advice: What should I do?
↵
E.g., when I type a ↵
↵
```cpp↵
for(int i=1;i<=n;i++)↵
cin>>a[i];↵
```↵
↵
I'd prefer ↵
↵
```cpp↵
for(int i=1;i<=n;i++)cin>>a[i];↵
```↵
↵
But the "smart_indent" option would do this↓ when I change into my preference of the sentence:↵
↵
```cpp↵
for(int i=1;i<=n;i++)cin>>a[i];↵
int x;↵
```↵
↵
I mean it would still insert a tab when I press "Enter". Worse yet, if I backspaced that tab and finish the second line and press enter again, the third line would backspace a tab automatically.↵
↵
That's really annoying isn't it, so I switched off the smart_indent option, wishing it would no longer produce that tab.↵
↵
However, things get worse. Nothing would happen when I enter the second line, but a tab would still be backspaced on the third line!↵
↵
Confused, I came here for advice: What should I do?