女神 调教 PyCharm缓存将C盘挤爆?一招帮你从根柢上惩处(超详备)
缘故女神 调教
我责任每天皆需要和IDE 打交说念,我用的是PyCharm,因为其便利性,让我爱不忍释,可是其缓存一直在C 盘成年累月,加上最近用上了WSL2,大缓存的问题日益严峻,直到C 盘还是快崩了,上图:图片女神 调教
我去查了一下PyCharm 缓存文献,不查不知说念,一查吓一跳,尽然有足足 26 个G!图片
惩处标准我查阅了网上许多的贵寓,惩处标准皆停留在几年前的了,直观让我知说念,当年的标准不是很靠谱,可是我知说念了一个膺惩的信息:需要修改idea.properties 文献。
解任有疑问就去官网查文档的民俗,我去到官网输入要津词 idea.properties进行搜索 ,找到了我需要的谜底(附上官网聚拢:Platform properties):From the main menu, select Help | Edit Custom Properties.如图:
图片
强奸片 点击之后,会弹出这个剪辑窗口,要是以前没修悔改,弹出来是空缺的:图片
那若何修改呢?咱们不竭看文档,文档列举了4个文献夹,分裂是Configuration directorySystem directoryPlugins directoryLogs directory文档内部不错看到每个文献的默许旅途,其中 JonhS是用户名,替换你我方的用户名就不错了。
图片
图片
防备不雅察不错发现,文献夹分为两类,一类是存放在Local 文献夹中,另外一类是存放在 Roaming 中,我看了下Roaming 文献夹中的文献,只好100M 傍边,我主要的缓存皆在 Local中,梓乡只需要搬动Local\JetBrains\PyCharm2021.3文献夹就行了,然后树立存放在Local中的文献旅途,即idea.system.path和idea.log.path。保障起见,我将存放在Roaming 文献夹中的文献(idea.config.pat 和idea.plugins.path)也树立了原来的完全旅途。说七说八,我的树立如下 (扫视:Windows 系统旅途要使用/ !!!):#----------------------------------------------------------# Uncomment this option if you want to customize a path to the settings directory.#----------------------------------------------idea.config.path=C:/Users/HinGwenWoong/AppData/Roaming/JetBrains/PyCharm2021.3#-----------------------# Uncomment this option if you want to customize a path to the caches directory.#---------------------------------------------------idea.system.path=G:/Software_caches/JetBrains/PyCharm2021.3#------------------------------------------------------# Uncomment this option if you want to customize a path to the user-installed plugins directory.#--------------------idea.plugins.path=C:/Users/HinGwenWoong/AppData/Roaming/JetBrains/PyCharm2021.3/plugins#---------------------------------# Uncomment this option if you want to customize a path to the logs directory.#--------------------------------idea.log.path=G:/Software_caches/JetBrains/PyCharm2021.3/log
保存之后,退出 PyCharm,然后将Local\JetBrains\PyCharm2021.3 搬动到{idea.system.path} ,脱手PyCharm 望望是否有问题(要是有问题一般会弹出指示)。要是没问题等于平素翻开,不需要聘请什么树立,就像以前那样丝滑等于阐述没问题。
图片
证据没问题的话,临了一步等于 释!放!空!间!
图片
顿时澄澈!见效!图片
顾忌以上等于从根柢上惩处PyCharm缓存将C盘挤爆的问题,但愿诸位的磁盘始终不会被挤爆。感谢! 本站仅提供存储功绩,通盘执行均由用户发布,如发现存害或侵权执行,请点击举报。- 上一篇:科目三 裸舞 一张图解锁be动词六种用法!飞速保藏起来学习吧!
- 下一篇:没有了