Pycharm: Auto indentation not working on specific file

Answered

PyCharm Version: 2017.2.3

Build: PY-172.3968.37

I have a python file where the auto-indentation is not working properly.  All of my other files are formatted properly according to PEP-8.  The indentation on some files is done properly.  I created some new files, which also get improperly formatted.

The settings for the project Editor>Code Style>Python are set as follows:

<Tab> is only indenting the lines 2 spaces.  If I manually correct the indentation according to PEP-8 and then hit Ctl-Alt-L, the indentation in the file is set back to 2 spaces

During my investigation I found a couple of .editconfig files and deleted them, but that had no effect.  I also tried disabling the EditorConfig plugin, but that also had no effect

 

1
2 comments

Hi Joel.

Could you please create an issue about that problem on our tracker with exported code style setting and idea.log attached? We will try to figure out what's going on there.

0

 

Will do.  I'll try to get it up tonight

Edit: Issue #1118196 has been created

0

Please sign in to leave a comment.