How do I disable automatic formatting of the code I'm currently writing?

My pycharm version is PyCharm 2023.2, Build #PY-232.8660.197, built on July 26, 2023.

And I have a problem with writing code, namely that pycharm automatically formats the code I'm writing at the moment. It works only when I write code, old code isn't formatted. This problem appeared after I updated to PyCharm 2023.2 on 26.07.2023. This formatting only works in python, not in js, ts etc.

So, as you can see on screenshot, I made TAB indentation, but it will be instantly formatted and my tab will be deleted. (I made this screenshot using video recorder).

 

Another case, I uncommented line below, and now I have mess in code.

So, any ideas how can I disable this “behavior”?

1
Hi, here are the settings which may be responsible for auto-formatting the code:

- [Preferences | Tools | Actions on Save -> Reformat / Run Black] (if your auto-saves are too frequent. Check [Preferences | Appearance & Behavior | System Settings] for that)
- [Preferences | Tools | Black]

Also, check your [Preferences | Editor | Code Style | Python] settings, where you can change the formatter rules.
0

Eventually after 2 monthes I solved this problem exiting reader mode, and I clicked at green check button and choosed Highlight: All problems. No it doesn't do any weird formatting, and also I have syntax highlight. 

0

请先登录再写评论。