在安裝完IntelliJ IDEA之后,默認會在windows的系統盤用戶文件夾中創建配置等文件。在我只有32G的SSD盤中,怎么能讓它如此,不爽呀。。占用到現在都快1G了。好吧。今天把她解決了。
找到安裝路徑下有個屬性文件idea.properties(比如:D:\IntelliJ IDEA\bin),打開此文件,前面三行就說了:
# Use ${idea.home} macro to specify location relative to IDE installation home # Also 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. I.e. c:/idea/system
接下來四行中看看應該就知道什么意思了,比如:idea.config.path=${user.home}/.IntelliJIdea12/config
修改成你要設置的路徑就好了,修改后最終這幾行如下:
#--------------------------------------------------------------------- # Uncomment this option if you want to customize path to IDE config folder. Make sure you're using forward slashes #--------------------------------------------------------------------- idea.config.path=D:/IntelliJ IDEA/.IntelliJIdea12/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:/IntelliJ IDEA/.IntelliJIdea12/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=D:/IntelliJ IDEA/.IntelliJIdea12/config/plugins #--------------------------------------------------------------------- # Uncomment this option if you want to customize path to IDE logs folder. Make sure you're using forward slashes. #--------------------------------------------------------------------- idea.log.path=D:/IntelliJ IDEA/.IntelliJIdea12/system/log
注意呀:糾結了好好久,怎么改了沒效果,后面發現
#idea.config.path=D:/IntelliJ IDEA/.IntelliJIdea12/config
這多了個#號啊。要把這個#號去掉打開這行配置才行
這下子可以把C盤占用的刪除了!!!不過注意把以前配置好的轉移備份