Search code examples
pycharm

Disable PyCharm auto whitespace format after refactoring


Can someone once and for all point me to the way on how to disable PyCharm auto formatting for code refactoring? The examples like the following have wasted me big time as I have to refactor -> auto format -> manual format back... I tried to disable all options under Editor/General/Smart Keys, but with not luck...

Before refactoring:

enter image description here

After refactoring (change variable name a to x). Notice the removal/addition of white space before x/}:

enter image description here

But I expect to simply get this instead, and now I have to manually format it to like this:

enter image description here


Solution

  • Googled around and figured that there is NO way to turnoff this autoformat feature of PyCharm. Learning Sublime as IDE now.