日常记录


以 CLion 为例。

需要关闭软件后操作。

查找原来的数据位置

  • config 项默认在:C:/Users/用户名/AppData/Roaming/JetBrains/产品
  • system 项默认在:C:/Users/用户名/AppData/Local/JetBrains/产品

把原来的数据拷贝到新位置

  • 比如我需要把原来的数据拷贝到 E:/CLion 下新建的 .CLion 文件夹。
  1. C:/Users/用户名/AppData/Roaming/JetBrains/CLion 下所有内容复制到 E:/CLion/.CLion 下新建的文件夹 config

  2. C:/Users/用户名/AppData/Local/JetBrains/产品 下所有内容复制到 E:/CLion/.CLion 下新建的文件夹 system

修改配置文件指定路径

找到 CLion 安装目录下的 bin 目录,打开 idea.properties 配置文件,修改路径如下:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#---------------------------------------------------------------------
# Uncomment this option if you want to customize a path to the settings directory.
#---------------------------------------------------------------------
idea.config.path=E:/CLion/.CLion/config

#---------------------------------------------------------------------
# Uncomment this option if you want to customize a path to the caches directory.
#---------------------------------------------------------------------
idea.system.path=E:/CLion/.CLion/system

#---------------------------------------------------------------------
# Uncomment this option if you want to customize a path to the user-installed plugins directory.
#---------------------------------------------------------------------
idea.plugins.path=E:/CLion/.CLion/config/plugins

#---------------------------------------------------------------------
# Uncomment this option if you want to customize a path to the logs directory.
#---------------------------------------------------------------------
idea.log.path=E:/CLion/.CLion/system/log
  • 此处为我自己个人的配置,自行选择合适的路径修改。