IntelliJ IDEA 14 の設定ファイルやキャッシュの場所を変更する

Windows版 IntelliJ IDEA v13,14 では、既定で以下フォルダに設定とかキャッシュを保存するようだが、

C:\Documents and Settings\user\.IntelliJIdea13
C:\Documents and Settings\user\.IntelliJIdea14

容量が無視できないほどに達していたので場所を変更。
バージョンが違うけど、こちら↓のやり方でできたようだ。

IntelliJ IDEAのProject Settingsを違う場所にインストールする
http://d.hatena.ne.jp/lranran123/20110325/1301044280

① IntelliJ IDEA が起動していたら終了

② 設定ファイル書き換え

 (IntelliJ IDEAインストールフォルダ)\bin\idea.properties

#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to IDE config folder. ・・・
#---------------------------------------------------------------------
# idea.config.path=${user.home}/.IntelliJIdea/config
idea.config.path=${idea.home}/.IntelliJIdea14/config

#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to IDE system folder. ・・・
#---------------------------------------------------------------------
# idea.system.path=${user.home}/.IntelliJIdea/system
idea.system.path=${idea.home}/.IntelliJIdea14/system

IDEAインストールフォルダと同じ場所でよければ、user.home を idea.home に変更するだけ。
違うドライブの好きな場所にする場合は、

idea.config.path=X:/xxx/IntelliJIdea14/config
idea.system.path=X:/xxx/IntelliJIdea14/system

などとする。ディレクトリ区切り文字は、バックスラッシュ(\)ではなくスラッシュ(/)を使う。

③ フォルダ移動

設定ファイルの場所にフォルダを移動する。

C:\Documents and Settings\user\.IntelliJIdea14

    ↓

(IntelliJ IDEAインストールフォルダ)\.IntelliJIdea14

④ フォルダ削除

v13は使ってないので以下フォルダ削除。

C:\Documents and Settings\user\.IntelliJIdea13

⑤ IntelliJ IDEA起動して設定が変わってないこと確認

もっと早く気づきたかった・・・