pycharm running way slow

后端 未结 9 684
礼貌的吻别
礼貌的吻别 2020-12-07 08:20

I\'m a big fan of PyCharm by JetBrains but I do run into some issues that I thought maybe I\'ll ask here about.

  1. It hangs unexpectedly and this happens often. O
9条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-07 08:56

    1. Change the inspection level

    Current PyCharm versions allows you to change the type of static code analysis it performs, and also features a Power/CPU Saving feature (Click on the icon at the bottom right, next to the lock):

    enter image description here

    2. Change indexed directories
    Exclude directories from being indexed which are set in the project paths but not actually required to be searched and indexed. Press ALT+CTRL+S and search for project.

    3. Do memory sweeps
    There is another interesting feature:

    Go into the settings (File/Settings) and search for memory. In IDE Settings>Appearance -> tick Show memory indicator. A memory bar will be shown at the bottom right corner (see the picture below). Click this bar to run a garbage collection / memory sweep.

    enter image description here

提交回复
热议问题