how to disable smart indentation following a blank line
Let's say I have just created a function and am ready to create another one, i.e. (dot = space, underscore = cursor)
def test(self):
....print 'abc'_
Pressing Enter now will create a line with 4 leading space:
def test(self):
....print 'abc'
...._
Since I am done with this function, I just press Backspace followed by Enter, which will again create a line with 4 leading space:
def test(self):
....print 'abc'
...._
which is rather annoying as I will need to press Backspace again before I can type {{def}}.
Is there an option to keep smart indentation, but changing its behavior such that pressing Enter on a blank line will just create another blank line?
Please sign in to leave a comment.
Hello Sok,
There is no option to control this behavior (and I don't see why it should
be optional; it should work correctly by default). Feel free to vote for
http://youtrack.jetbrains.net/issue/PY-3009
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
Voted. Thanks :-)