如何将IntelliJ IDEA 的配置改到其他分区

6896人阅读 评论(0) 收藏 举报
分类:

不管你将 IntelliJ 装在什么地方,它都会在 C 盘的用户目录下创建 .IntelliJIdeaXX 目录,而且这个目录会随着时间增长到几个 G 那么大。这对于 C 盘小得可怜的人来说确实是个问题。不用怕,这里介绍一个将 .IntelliJIdeaXX 目录移到其他分区的办法。

我的 IntelliJ 装在 D:\Program Files\JetBrains\IntelliJ IDEA 8.1 目录下。我是这么做的:

1、首先在 D:\Program Files\JetBrains\ 下创建一个文件夹:IdeaConfig,用来存放所有的 IntelliJ 配置。

2、然后打开 D:\Program Files\JetBrains\IntelliJ IDEA 8.1\bin\idea.properties。

3、将所有的 ${user.home} 替换为 D:/Program Files/JetBrains/IdeaConfig (注意斜杠的方向)

4、保存 idea.properties

5、打开 C:\Documents and Settings\XXX 目录,把 .IntelliJIdea8x 和 .IntelliJIdea80 两个目录移动到 IdeaConfig 目录下。

这样你就可以启动 IntelliJ,而且以后也不会再占用 C 盘空间了。

【转自】:http://blog.csdn.net/YidingHe/article/details/4061251


# 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.
#---------------------------------------------------------------------
 idea.config.path=D:/idea_config/.IntelliJIdea13/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:/idea_config/.IntelliJIdea13/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

#---------------------------------------------------------------------
# Maximum file size (kilobytes) IDE should provide code assistance for.
# The larger file is the slower its editor works and higher overall system memory requirements are
# if code assistance is enabled. Remove this property or set to very large number if you need
# code assistance for any files available regardless their size.
#---------------------------------------------------------------------
#idea.max.intellisense.filesize=2500

#---------------------------------------------------------------------
# This option controls console cyclic buffer: keeps the console output size not higher than the specified buffer size (Kb).
# Older lines are deleted. In order to disable cycle buffer use idea.cycle.buffer.size=disabled
#---------------------------------------------------------------------
idea.cycle.buffer.size=1024

#---------------------------------------------------------------------
# Configure if a special launcher should be used when running processes from within IDE.
# Using Launcher enables "soft exit" and "thread dump" features
#---------------------------------------------------------------------
idea.no.launcher=false

#---------------------------------------------------------------------
# To avoid too long classpath
#---------------------------------------------------------------------
idea.dynamic.classpath=false

#---------------------------------------------------------------------
# Uncomment this property to prevent IDE from throwing ProcessCanceledException when user activity
# detected. This option is only useful for plugin developers, while debugging PSI related activities
# performed in background error analysis thread.
# DO NOT UNCOMMENT THIS UNLESS YOU'RE DEBUGGING IDE ITSELF. Significant slowdowns and lockups will happen otherwise.
#---------------------------------------------------------------------
#idea.ProcessCanceledException=disabled

#---------------------------------------------------------------------
# There are two possible values of idea.popup.weight property: "heavy" and "medium".
# If you have WM configured as "Focus follows mouse with Auto Raise" then you have to
# set this property to "medium". It prevents problems with popup menus on some
# configurations.
#---------------------------------------------------------------------
idea.popup.weight=heavy

#---------------------------------------------------------------------
# Use default anti-aliasing in system, i.e. override value of "Settings|Editor|Appearance|Use anti-aliased font"
# option. May be useful when using Windows Remote Desktop Connection for instance.
#---------------------------------------------------------------------
idea.use.default.antialiasing.in.editor=false

#---------------------------------------------------------------------
# Disabling this property may lead to visual glitches like blinking and fail to repaint
# on certain display adapter cards.
#---------------------------------------------------------------------
sun.java2d.noddraw=true

#---------------------------------------------------------------------
# Removing this property may lead to editor performance degradation under Windows.
#---------------------------------------------------------------------
sun.java2d.d3d=false

#---------------------------------------------------------------------
# Workaround for slow scrolling in JDK6
#---------------------------------------------------------------------
swing.bufferPerWindow=false

#---------------------------------------------------------------------
# Removing this property may lead to editor performance degradation under X Window.
#---------------------------------------------------------------------
sun.java2d.pmoffscreen=false

#---------------------------------------------------------------------
# Workaround to avoid long hangs while accessing clipboard under Mac OS X.
#---------------------------------------------------------------------
#ide.mac.useNativeClipboard=True

#---------------------------------------------------------------------
# Maximum size (kilobytes) IDEA will load for showing past file contents -
# in Show Diff or when calculating Digest Diff
#---------------------------------------------------------------------
#idea.max.vcs.loaded.size.kb=20480
#---------------------------------------------------------------------
# IDEA can copy library .jar files to prevent their locking.
# By default this behavior is enabled on Windows and disabled on other platforms.
# Uncomment this property to override.
#---------------------------------------------------------------------
# idea.jars.nocopy=false

#---------------------------------------------------------------------
# The VM option value to be used to start a JVM in debug mode.
# Some JREs define it in a different way (-XXdebug in Oracle VM)
#---------------------------------------------------------------------
idea.xdebug.key=-Xdebug

#---------------------------------------------------------------------
# Switch into JMX 1.0 compatibility mode.
# Uncomment this option to be able to run IDEA using J2SDK 1.5+ while working
# with application servers (like WebLogic) running 1.4.
#---------------------------------------------------------------------
#jmx.serial.form=1.0

#-----------------------------------------------------------------------
# Change to 'enabled' if you want to receive instant visual notifications
# about fatal errors that happen to an IDE or plugins installed.
#-----------------------------------------------------------------------
idea.fatal.error.notification=disabled

查看评论

android studio 安装运行时Config path invalid 问题

安装好studio后,出现如下弹窗 Config path ‘C:\Users\Administrator\.AndroidStudioPreview\config’ is inva...
  • hnust_xiehonghao
  • hnust_xiehonghao
  • 2015年05月28日 19:44
  • 4298

【Intellij Idea】Intellij Idea常用配置设置

1、配置Intellij Idea的配置文件从默认c盘转移到其他盘符 找到Intellij idea的安装文件,在bin目录下找到idea.properties配置文件,如下把Idea的配置文件夹和...
  • u013806366
  • u013806366
  • 2016年08月22日 11:07
  • 16553

修改IDEA默认环境配置文件

1.先说为什么建议修改路径 C盘空间不足,或者想重装系统等原因,不得不修改安装路径.所以以后安装开发工具的时候不要安装在系统盘里,使用该工具前把一些默认的配置信息的路径也改到别的盘符下.以后在换...
  • lkx94
  • lkx94
  • 2016年11月18日 14:38
  • 6997

IntelliJ IDEA使用

正版学生授权: 教程 教程:IntelliJ IDEA出现问题:"objc: Class JavaLaunchHelper is implemented in both ..." warning i...
  • sinat_34174767
  • sinat_34174767
  • 2017年05月13日 00:21
  • 485

InteliJ Idea 2017.1 for Mac 版 objc[4163]: Class JavaLaunchHelper is implemented in both XXX提示

Mac版本IntelliJ Idea 2017.1在运行程序时,Console出现红色警告『objc[4163]: Class JavaLaunchHelper is implemented in ...
  • yyj185
  • yyj185
  • 2017年04月01日 13:28
  • 3932

Jetbrains系列开发工具日常配置与使用

IntelliJ IDEA IDEA的确是Java开发利器,之前一直用Eclipse,后来实习单位都用IDEA,就慢慢转了,开始还不习惯,后来就不禁被其华丽的界面和完备的功能所折服,不过使用什么ID...
  • hackerdotcn
  • hackerdotcn
  • 2017年07月14日 10:23
  • 565

Intellij14解决C:\Users\Administrator\.IntelliJIdea14存放路径

1.先说为什么建议修改路径 C盘空间不足,或者想重装系统等原因,不得不修改安装路径.所以以后安装开发工具的时候不要安装在系统盘里,使用该工具前把一些默认的配置信息的路径也改到别的盘符下.以后在换系统...
  • yqroot
  • yqroot
  • 2015年09月25日 21:10
  • 5136

IntelliJ IDEA导入项目部署导致磁盘被占满

前言总是在实验室的大mac一体机上调试后台不是很方便,准备从git服务器上clone一份代码下来。在自己的机子上跑起来。 这份代码在mac一体机上运行是正确的,我将其代码上传到git服务器。 导入...
  • xinjianwuhen1991
  • xinjianwuhen1991
  • 2015年11月11日 10:14
  • 1570

修改IntelliJ IDEA 15.0.4缓存文件位置

IntlliJ IDEA的缓存文件默认在C盘,随着使用,缓存文件在逐渐增大,这样占用系统盘资源,那么如何将其修改到其他路径呢?...
  • Zen99T
  • Zen99T
  • 2016年02月28日 23:03
  • 5303

IntelliJ IDEA(Android Studio)中如何设置使得占用C盘空间尽量少(相关核心文件和目录介绍)

关于安装了IntelliJ IDEA 编辑器后,它就会在c盘生成.IntelliJIdea2016.2类似这个的文件夹, 但是这个文件目录太大,可能一个多G,甚至更多,导致c盘都快满了。 这可怎么办呢...
  • qq_27093465
  • qq_27093465
  • 2016年08月31日 15:43
  • 4925
    个人资料
    持之以恒
    等级:
    访问量: 987万+
    积分: 8万+
    排名: 19
    文章分类
    最新评论