Sublime Forum

Function arguments on multiple lines

#1

Hi,

I like to format my code like so (this example is in Python but I do that in C/C++ as well):

def func(self, argument_1,
         argument_2,
         argument_3):

When I hit the Return key after typing “argument_1,”, I would like the cursor to be in the right position to type “argument_2” at the position shown above. Same for each line after that. Unless I am mistaken, Sublime Text does not provide that feature.

Best wishes,

Luc Bourhis

0 Likes

#2

Actually,

"indent_to_bracket": true

in User’s preferences does the trick! Sorry for the noise…

0 Likes