PyCharm Code Folding/Outlining Generates Wrong Boundaries

前端 未结 2 1855
旧时难觅i
旧时难觅i 2021-01-02 23:36

I\'m having a very frustrating issue with PyCharm in that it does not want to properly outline the code so that blocks fold correctly. I\'ve looked all over the place and co

2条回答
  •  温柔的废话
    2021-01-02 23:57

    You can use

    # region FooRegion
      ...
      your-code-here
      ...
    # endregion
    

    This will create code folding regions manually like in visual studio style

提交回复
热议问题