PyCharm: 配置、缓存、插件、日志等目录PyCharm: 配置、缓存、插件、日志等目录PyCharm: 配置、缓存、插件、日志等目录PyCharm: 配置、缓存、插件、日志等目录
  • 首页
  • 博客
  • 文件
  • 书签
  • 分析
  • 登录
Search
Generic filters

PyCharm: 配置、缓存、插件、日志等目录

Published by admin at 2022年11月6日
Categories
  • Python
Tags

官方文档

Directories used by the IDE

Last modified: 07 September 2022

By default, PyCharm stores user-specific files for each IDE instance (configuration, caches, plugins, logs, and so on) in the user's home directory. However, you can change the location for storing those files, if necessary.

note

The default location of the IDE directories has changed starting from PyCharm version 2020.1. If you had a previous version, new installations will import configuration from the old directories. For information about the location of the default directories in previous IDE versions, see the corresponding help version, for example: https://www.jetbrains.com/help/pycharm/2019.3/tuning-the-ide.html#default-dirs.

Change the location of IDE directories

You can move the default IDE directories, for example, if the user profile drive runs out of space or it is located on a slow disk, if the home directory is encrypted (slowing down the IDE) or is located on a network drive, if you want to create a portable installation or exclude caches from home directory backups, and so on.

  1. From the main menu, select Help | Edit Custom Properties.

  2. Set the property that corresponds to the necessary directory:

    Property

    Path to

    idea.config.path

    Configuration directory

    idea.system.path

    System directory

    idea.plugins.path

    Plugins directory

    idea.log.path

    Logs directory

    Specify paths with forward slashes /, including Windows paths (for example, C:/idea/system).

    You can insert any other properties as variables. For example, use ${user.home} (standard Java system property) to specify paths relative to the user's home directory:

    idea.config.path=${user.home}/MyIdeaConfiguration
  1. After you restart PyCharm, it will use the new location of the corresponding directory.

Clean up old IDE directories

Every time you install a new major version of PyCharm, it uses a new set of IDE directories and automatically deletes the caches and logs directories for older versions of the IDE that have not been updated in the last 180 days. The configuration and plugins directories will remain forever, unless you remove them manually.

  1. From the main menu, select Help | Delete Leftover IDE Directories

  2. In the Delete Leftover IDE Storage Directories dialog, select the versions of the IDE that you are not planning to use and click Delete.

发表回复 取消回复

您的电子邮箱地址不会被公开。 必填项已用*标注

Categories

  • 猫
  • Python
  • MySQL
  • Django
  • Html/CSS
  • JavaScript
  • Vue
  • RegExp
  • php
  • Practice
  • Virtualization
  • Linux
  • Windows
  • Android
  • NAS
  • Software
  • Hardware
  • Network
  • Router
  • Office
  • WordPress
  • SEO
  • English
  • Games
  • Recipes
  • living
  • Memorandum
  • Essays
  • 未分类

归档

©2015-2022 Alaica Blog support@alaica.com