language-python icon indicating copy to clipboard operation
language-python copied to clipboard

Increase indent if line ends with an open bracket

Open patrys opened this issue 9 years ago • 3 comments

Re #22

patrys avatar Dec 10 '15 19:12 patrys

@patrys have you seen https://atom.io/packages/python-indent (disclosure, I've worked on it). It handles hanging indents (the PR you've opened here) along with other line continuations.

def f(param1, param2,
      param3, param4):
    x = [1, 2, 3,
         4, 5, 6]

kbrose avatar Mar 25 '16 18:03 kbrose

Yes, I've used it for a while but unfortunately it's not perfect either.

patrys avatar Mar 25 '16 18:03 patrys

Have you used the latest version? It underwent a complete overhaul about a month ago.

If you are using a recent version, would you mind filing some issues showing where unexpected behavior is cropping up? I want the package to be as robust as possible.

kbrose avatar Mar 25 '16 18:03 kbrose