IntelliJ IDEA修改系统缓存目录
来源:互联网 发布:深圳外贸优化 编辑:程序博客网 时间:2024/06/18 18:04
intellij IDEA在第一次启动时,会在${user.home}目录下建立以.IntelliJIdea开头的文件夹,用来存放IDEA的配置信息、插件和缓存信息。随着工具使用时间越多,这个文件夹会越来越大。如果用户目录和系统盘在一个分区,那系统盘分区可用空间就会变小,系统重装时,这个目录还会被删除。
于是我们需要将此目录修改到其他分区,修改很简单,如下:
在IDEA安装目录的bin文件夹中找到idea.properties文件,我们需要里面的几项内容:
# Use ${idea.home} macro to specify location relative to IDE installation home.# Use ${xxx} where xxx is any Java property (including defined in previous lines of this file) to refer to its value.# Note for Windows users: please make sure you're using forward slashes (e.g. c:/idea/system).#---------------------------------------------------------------------# Uncomment this option if you want to customize path to IDE config folder. Make sure you're using forward slashes.#---------------------------------------------------------------------#打开confi的配置# idea.config.path=${user.home}/config #---------------------------------------------------------------------# Uncomment this option if you want to customize path to IDE system folder. Make sure you're using forward slashes.#---------------------------------------------------------------------#打开system的配置# idea.system.path=${user.home}/system #---------------------------------------------------------------------# Uncomment this option if you want to customize path to user installed plugins folder. Make sure you're using forward slashes.#---------------------------------------------------------------------#打开plugins的配置# idea.plugins.path=${idea.config.path}/plugins #---------------------------------------------------------------------# Uncomment this option if you want to customize path to IDE logs folder. Make sure you're using forward slashes.#---------------------------------------------------------------------#打开log的配置# idea.log.path=${idea.system.path}/log
将idea.config.path和idea.system.path里面的${user.home}改成将要存放目录的位置,我这里修改为D:/Program/JetBrains,如下是修改后的结果
#---------------------------------------------------------------------# Uncomment this option if you want to customize path to IDE config folder. Make sure you're using forward slashes.#---------------------------------------------------------------------idea.config.path=D:/Program/JetBrains/.IntelliJIdea/config#---------------------------------------------------------------------# Uncomment this option if you want to customize path to IDE system folder. Make sure you're using forward slashes.#---------------------------------------------------------------------idea.system.path=D:/Program/JetBrains/.IntelliJIdea/system
注意:一定要将配置项前面的注释符(#)去掉,否则不生效。
接下来,重启IDEA工具就可以了。
阅读全文
0 0
- IntelliJ IDEA修改系统缓存目录
- 修改IntelliJ IDEA 15.0.4缓存文件位置
- 修改IntelliJ IDEA 15.0.4缓存文件位置
- IntelliJ IDEA 目录技巧
- IntelliJ IDEA 目录技巧
- IntelliJ IDEA 目录结构
- intellij idea字体修改
- Intellij IDEA 修改字体
- 修改intellij idea内存
- intellij idea日志输出目录
- Intellij idea 修改recent project
- Intellij IDEA 内存设置修改
- Intellij Idea 14 修改字体
- 修改intellij idea的配置
- Intellij IDEA修改包名
- 修改intellij IDEA 项目编码
- intellij idea 修改字体 修改主题
- IntelliJ IDEA清空项目缓存
- Intellij IDEA14产生JAVA api文档
- ZOJ 3380 Patchouli's Spell Cards(概率DP)
- 温故知新(6)属性get、set
- hdu 2897 邂逅明下(巴什博弈)
- 修改outlook2013中.ost文件的默认保存位置
- IntelliJ IDEA修改系统缓存目录
- linux命名管道
- 【转】Gradle的简介与安装
- Android 开发.gitgitgnore文件
- textField功能方法详解
- mac下eclipse安装svn插件
- MacAddressTool
- 持续部署的发展之路
- react-native titleBar