On 15/10/2014 12:23 PM, Juan Christian wrote:
Using PyCharm is easy:
File > Settings > (IDE Settings) Editor > Smart Keys > Reformat on paste
> choose "Reformat Block"
This isn't as straight forward as you imply. Say I have misindented code
like this:
if True:
print 'true'
else:
print 'false'
print 'done'
If I select this block in PyCharm and reformat it, I get:
if True:
print 'true'
else:
print 'false'
print 'done'
Which is still invalid. Even if it did work more fully, though, how
would it determine the correct placement of the last line of code?
--
https://mail.python.org/mailman/listinfo/python-list