Pycharm ignoring @formatter:off and @formatter:on

Pycharm keeps reformatting my section of code, ignoring @formatter:off and @formatter:on tags.

Settings as follows:

 

Here's a video where it's ignoring the format decorators and formatting anyway.

 

When I unclick “optimize imports”, it doesn't format at all, so it's definitel related.

 

Lastly, here's the setting which should turn on the formatter decorators:

0

请先登录再写评论。