Pycharm occupies too much C disk space, system configuration files are relocated

Pycharm occupies too much C disk space, system configuration files are relocated

1. Find a more effective method: directly find the .PyCharm*** folder, and then there is a ***cach**** file in it, usually there are dozens of G, just delete it directly, so far No impact was found.

2. There is an alternative method: close Pycharm, cut the entire corresponding folder under the user name to the directory that needs to be stored, then restart Pycharm, and select the cut folder in the default configuration file dialog box. can.

With the continuous use of Pycharm, the file size under C:\Users\<username>\.PyCharm<2018.1> will continue to increase, and it is usually the content under the system folder. At this time, the file can be moved to another disk through software configuration (eg D:/Program Files/.PyCharmCE2018.1).

The corresponding configuration file has two generation methods:

1. Create the idea.properties file manually under C:\Users\<username>\.PyCharm<2018.1>\config

2. Create a new option under the Help/Edit Custom Properties option in Pycharm

Then make the following modifications under the created folder

# custom PyCharm properties
 
idea.system.path=D:/Program Files/.PyCharmCE2018.1/system

Of course, in addition to system, you can also configure other paths to relocate other content.

# idea.config.path=${user.home}/.PyCharmCE/config
# idea.system.path=${user.home}/.PyCharmCE/system
# idea.plugins.path=${idea.config.path}/plugins
# idea.log.path=${idea.system.path}/log

Finally, copy C:\Users\<username>\.PyCharm<2018.1>\system under the original folder to the target relocation folder, and close Pycharm, delete the system folder and restart Pycharm to complete the relocation of the configuration.

Guess you like

Origin blog.csdn.net/a40850273/article/details/89370964