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工具就可以了。
下载 IDEA2021.2 下载最新版IDEA2021.2版本地址:(本文是以windows版本讲解的,其他操 […]...
一、导入 1、java项目在没有导入该jar包之前,如图: 2、点击 File -> Projec […]...
1、日晒主题 Solarized Themes 推荐指数:☆☆☆☆☆推荐理由:日晒主题本身是为vim定制的。后 […]...
作者:极客小俊 一个专注于web技术的80后我不用拼过聪明人,我只需要拼过那些懒人 我就一定会超越大部分人! […]...
(1)项目导入, 点击intelliJ IDEA的Open按钮, 找到项目目录下pom的文件 […]...
IntelliJ IDEA 2021.1激活破解教程(亲测激活至 2099 年,长期更新) 分享一下 Inte […]...
一. 下载最新版本的idea 1. 官网下载,官网地址:http://www.jetbr […]...
一、日常开发相关快捷键1.重写接口实现类:Ctrl+I2.搜索:Shift+Shift 3.生成get或set […]...
本文主要分析Dubbo中对 SPI机制实现方式及相关原理,以核心类ExtensionLoader的源码解读来将 […]...
Javamail-Android配置步骤: 下载Android版本JavaMail包,additional.j […]...
1 select @@SERVICENAME 安装SQLServer时,如果不另外设置数据库实例名称,那么默认 […]...
cvi_busy_lib.js: cvi_busy_lib.js 是一个基于ajax的遮罩js,遮罩区域为bo […]...
//1、可用于并发处理:/* * PHP 代码,确保多个进程同时写入同一个文件成功 * 核心思路:文件加锁 * 函数介绍: * (1)fopen — 打开文件或者 URL resource fopen ( str...
public partial class Form1 : Form { public F […]...
本文始发于个人公众号:TechFlow,原创不易,求个关注 在之前的文章当中,我们推导了线性回归的公式,线性回 […]...
http://blog.javachen.com https://kaimingwan.com ...
Powered By WordPress