Home Download Buy Blog Forum Support

Function arguments on multiple lines

Function arguments on multiple lines

Postby ljbo3 on Wed Aug 15, 2012 2:30 pm

Hi,

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

Code: Select all
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
ljbo3
 
Posts: 7
Joined: Wed Aug 15, 2012 2:23 pm

Re: Function arguments on multiple lines

Postby ljbo3 on Mon Jan 07, 2013 8:08 pm

Actually,
Code: Select all
"indent_to_bracket": true

in User's preferences does the trick! Sorry for the noise…
ljbo3
 
Posts: 7
Joined: Wed Aug 15, 2012 2:23 pm


Return to Ideas and Feature Requests

Who is online

Users browsing this forum: Yahoo [Bot] and 9 guests

cron