Open sphh opened 3 years ago
Hi @sphh thanks for the feedback! I was able to reproduce this, I'm not totally sure but seems like the auto-indentation is just taking into account if the line has "
to apply or not the indent (so my guess is that we are not properly supporting multi-line strings yet)
Issue Report Checklist
conda update spyder
(orpip
, if not using Anaconda)jupyter qtconsole
(if console-related)spyder --reset
Problem Description
Whenever I am pressing
Enter
when I am between parentheses()
in any multi-line string (""" """
), spyder autoindents the next line and I have to press backspace repeatedly to get to the beginning of the line.What steps reproduce the problem?
There are different cases, depending where the cursor is, when you press
Enter
(I marked the cursor position with¦
):becomes after pressing
Enter
becomes after pressing
Enter
becomes after pressing
Enter
… but in every other line:
becomes after pressing
Enter
With an open quotation mark (it does not matter, if it is a
"
or'
) before the opening parenthesis, everything works like expected:becomes after pressing
Enter
[]
and{}
.What is the expected output? What do you see instead?
It would be great, if the cursor gets positioned always at same column as the beginning of the previous line.
Exceptions are, when the line starts with
>>>
or...
.Versions
Dependencies