Sublime Forum

Smart indentation

#1

How do i set the behavior which cause the editor to use smart indentation when i compose code?

for example if i write the following c++ code:

MyClass::~MyClass()
{<cursor>

and push enter, the cursor will move one line down and one tab right:

MyClass::~MyClass()
{
    <cursor>

but, when i compose Erlang code, i don’t get that behavior, for example:

my_func() -> <cursor>

and when i push enter:

my_func() ->
<cursor>

so… :smile:
how can i make it happen?

0 Likes

#2

Smart indentation isn’t configurable yet, unfortunately :frowning:

The TM syntax format does include rules to specify indentation, it’s on the todo list to implement.

0 Likes