Anyone who has played VS knows that when you type a code and add a semicolon, the spaces will be automatically completed, such as:
int a=b+1;
自动变成
int a = b + 1;
But pycharm doesn’t have it. It needs to be done manually or with the shortcut key ctrl alt L. I don’t know much about pycharm. Please give me some advice.
@mugbya
Personally tested vs downloaded this code, no spaces are added automatically, the questioner is lying
ctrl+alt+L is enough
can’t
It is recommended that the author develop good coding habits instead of relying on IDE to format it for you