Pycharm's code style inspection: ignore/switch off specific rules

前端 未结 5 654
悲哀的现实
悲哀的现实 2021-01-01 09:17

I\'m trying to import existing project into PyCharm. I can refactor the code so that PyCharm will be pleased, but we like to have spaces around colons in dictionaries, like

5条回答
  •  悲&欢浪女
    2021-01-01 09:46

    to have spaces around colons in dictionaries, configure Settings > Editor > Python Spaces

    Other > Before ':'

    and

    Other > After ':'

提交回复
热议问题