Skip to content
Advertisement

Tag: macros

PyCharm: Run `black -S` on region

We are not ready to automatically format the whole source code with black. But from time to time I would like to execute black -S on a region via PyCharm. There is a hint in the docs how to run black (or black -S (what I like)) on the whole file. But … How to run black only on a

Advertisement