PEP 8 - continuation line under-indented for visual indent

I have code that looks like this:

sql = ('SELECT name '
       'FROM dogs '
       'WHERE id = 1')

When typing, pycharm indents like this:

sql = ('SELECT name '
'FROM dogs '
'WHERE id = 1')

This causes the warning 'PEP 8 - continuation line under-indented for visual indent' to be displayed.

If I select the menu option Codes | Auto-Indent Lines, it fixes the line the cursor is currently on.  

Is there a way I can turn this on so it is automatically done as I'm typing the code?
0
2 comments
I've created a new bug report for this problem PY-10972. Feel free to vote for it to receive notifications.
0

Please sign in to leave a comment.