Indentation is done by the return key which inserts a newline character and indents the new line. The Tab key is used to reindent the current line if needed.
Moreover, some Smac global variables are available to customize indentation in comment, string, parenthesis, bracket, brace, statement and function arguments.