Sublime Forum

Auto-indent C# single line if

#1

Hi all

When editing a (Unity) C# file in sublimetext the auto-indent doesn’t work completely as I would like.
With single line if statements I would like them to automatically indent like this:

if(bool) doThis();

But sublimetext doesn’t auto-indent and leaves it like this:

if(bool) doThis();

When I change the code to be recognised as regular C the auto-indent does happen regardless of the curly brackets.
Is there a way to fix this, preferably as a default for all languages?

0 Likes