修改IDEA的缓存目录

intellij IDEA在第一次启动时,会在${user.home}目录下建立以.IntelliJIdea开头的文件夹,用来存放IDEA的配置信息、插件和缓存信息。

随着工具使用时间越多,这个文件夹会越来越大。如果用户目录和系统盘在一个分区,那系统盘分区可用空间就会变小,系统重装时,这个目录还会被删除。

于是我们需要将此目录修改到其他分区,修改很简单,如下:

在IDEA安装目录的bin文件夹中找到idea.properties文件,我们需要修改里面的几项内容:

#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to IDE config folder. Make sure you're using forward slashes.
#---------------------------------------------------------------------
# idea.config.path=${user.home}/.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=${user.home}/.IntelliJIdea/system

#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to user installed plugins folder. Make sure you're using forward slashes.
#---------------------------------------------------------------------
# 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.
#---------------------------------------------------------------------
# idea.log.path=${idea.system.path}/log

 将idea.config.path和idea.system.path里面的${user.home}改成将自己想存放的位置,我这里修改为D:/Program Files/JAVA/JetBrains,如下是修改后的结果:

#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to IDE config folder. Make sure you're using forward slashes.
#---------------------------------------------------------------------
# idea.config.path=${user.home}/.IntelliJIdea/config
idea.config.path=D:/Program Files/JAVA/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=${user.home}/.IntelliJIdea/system
idea.system.path=D:/Program Files/JAVA/JetBrains/.IntelliJIdea/system

#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to user installed plugins folder. Make sure you're using forward slashes.
#---------------------------------------------------------------------
# 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.
#---------------------------------------------------------------------
# idea.log.path=${idea.system.path}/log

 注意:一定要将配置项前面的注释符(#)去掉,否则不生效。

 

 接下来,重启IDEA工具就可以了。

回答: 在IDEA修改已提交的SVN版本备注是不直接支持的。SVN默认情况下不允许开发人员修改已提交版本的日志信息。如果你想修改已提交的版本备注,你需要联系SVN管理员安装pre revprop change hook。这个hook是一个钩子脚本,它可以在修改版本属性之前执行一些操作。通过这个hook,你可以实现修改已提交版本备注的功能。\[1\] 另外,如果你想重新输入新的SVN账号,你需要清除SVN的账号缓存。SVN会将你输入的账号信息缓存起来,导致认证失败。你可以找到SVN存储账号的目录,一般在~/.subversion/auth/svn.simple目录下,删除相应的账号文件即可重新输入新的账号信息。\[2\] 如果你想查看SVN修改的文件记录,可以使用一些SVN命令。比较常用的是svn log命令,它可以展示SVN的版本作者、日期、路径等信息。另外还有svn diff命令,用来显示特定修改的行级详细信息;svn cat命令,可以取得在特定版本的某文件并显示在当前屏幕;svn list命令,可以显示一个目录或某一版本存在的文件。这些命令可以帮助你查看SVN的修改记录。\[3\] #### 引用[.reference_title] - *1* *2* *3* [IntelliJ IDEA SVN的账号修改 信息清除](https://blog.csdn.net/weixin_29191761/article/details/113568313)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值