search

Home  >  Q&A  >  body text

python - Can Pycharm automatically complete spaces after writing a sentence of code?

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.

怪我咯怪我咯2752 days ago1152

reply all(4)I'll reply

  • ringa_lee

    ringa_lee2017-05-18 10:58:12

    @mugbya

    reply
    0
  • 曾经蜡笔没有小新

    曾经蜡笔没有小新2017-05-18 10:58:12

    Personally tested vs downloaded this code, no spaces are added automatically, the questioner is lying

    reply
    0
  • 黄舟

    黄舟2017-05-18 10:58:12

    ctrl+alt+L is enough

    reply
    0
  • 世界只因有你

    世界只因有你2017-05-18 10:58:12

    can’t

    It is recommended that the author develop good coding habits instead of relying on IDE to format it for you

    reply
    0
  • Cancelreply