IDE で使用されるディレクトリ
By default, CLion stores user-specific files for each IDE instance (configuration, caches, plugins, logs, and so on) in the user's home directory. ただし、必要に応じて、これらのファイルを保存する場所を変更できます。
IDE で使用されるファイルとディレクトリを見つける
メインメニューから を選択します。
In the dialog that opens, you will see all files and directories used by CLion with their exact paths for the current installation.
リスト内の特定の項目を選択して Alt+Enter キーを押すか、右クリックして「その項目を含むフォルダーに表示」を選択するか、フルパスをコピーすることができます。 For files, there is also an option to open the file in the CLion editor.
IDE ディレクトリの場所を変更する
たとえば、ユーザープロファイルドライブの容量が不足している場合や低速ディスクにある場合、ホームディレクトリが暗号化されている(IDE の速度が低下している)場合、またはネットワークドライブにある場合は、デフォルトの IDE ディレクトリを移動できます。ポータブルインストールを作成したり、ホームディレクトリのバックアップからキャッシュを除外したりする必要があります。
に進みます。
必要なディレクトリに対応するプロパティを設定します:
プロパティ
パス
idea.config.pathidea.system.pathidea.plugins.pathidea.log.pathidea.propertiesファイルを編集するときは、Windows パス (例: C:/idea/system ) を含む、スラッシュ / を含むパスを指定します。他のプロパティを変数として挿入できます。 例:
${user.home}(標準の Java システムプロパティ)を使用して、ユーザーのホームディレクトリからの相対パスを指定します。idea.config.path=${user.home}/MyIdeaConfigurationAfter you restart CLion, it will use the new location of the corresponding directory.
古い IDE ディレクトリをクリーンアップする
Every time you install a new major version of CLion, it uses a new set of IDE directories and automatically deletes the caches and logs directories for older versions of the IDE that have not been updated in the last 180 days. 構成ディレクトリとプラグインディレクトリは、手動で削除しない限り、永久に残ります。
に進みます。
以前のバージョンの IDE ストレージディレクトリを削除 ダイアログで、使用する予定のない IDE のバージョンを選択し、 削除 をクリックします。
構成ディレクトリ
The CLion configuration directory contains user-defined IDE settings, such as keymaps, color schemes, custom VM options, platform properties, and so on.
- 構文
%APPDATA%\JetBrains\<product><version>
- サンプル
C:\Users\JohnS\AppData\Roaming\JetBrains\CLion%instance-version%
- 構文
~/Library/Application Support/JetBrains/<product><version>
- サンプル
~/Library/Application Support/JetBrains/CLion%instance-version%
- 構文
~/.config/JetBrains/<product><version>
- サンプル
~/.config/JetBrains/CLion%instance-version%
You can change the location of the CLion configuration directory using the idea.config.path property.
To share your personal IDE settings, copy the files from the configuration directory to the corresponding folders on another CLion installation. Make sure that CLion is not running to avoid erasing the copied files when you shut down the IDE. Depending on which settings you modified, the CLion configuration directory can contain the following subfolders:
ディレクトリ | ユーザー設定 |
|---|---|
codestyles | カスタマイズされた コードスタイルスキーム |
colors | カスタマイズされた エディターの色とフォントスキーム |
fileTemplates | ユーザー定義の ファイルテンプレート |
filetypes | User-defined file types |
inspection | |
keymaps | Customized keyboard shortcuts |
options | さまざまなオプション(たとえば、機能の使用統計やマクロなど) |
scratches | |
settingsSync | バックアップと同期を使用して共有される IDE 設定 |
templates | ユーザー定義の ライブテンプレート |
tools | ユーザー定義の外部ツールの設定ファイル |
システムディレクトリ
CLion システムディレクトリには、キャッシングとローカル履歴ファイルが含まれています。
- 構文
%LOCALAPPDATA%\JetBrains\<product><version>
- サンプル
C:\Users\JohnS\AppData\Local\JetBrains\CLion%instance-version%
- 構文
~/Library/Caches/JetBrains/<product><version>
- サンプル
~/Library/Caches/JetBrains/CLion%instance-version%
- 構文
~/.cache/JetBrains/<product><version>
- サンプル
~/.cache/JetBrains/CLion%instance-version%
You can change the location of the CLion system directory using the idea.system.path property.
キャッシュファイルの削除の詳細については、 キャッシングの無効化 を参照してください。
プラグインディレクトリ
CLion プラグインディレクトリには、ユーザーがインストールしたプラグインが含まれています。
- 構文
%APPDATA%\JetBrains\<product><version>\plugins
- サンプル
C:\Users\JohnS\AppData\Roaming\JetBrains\CLion%instance-version%\plugins
- 構文
~/Library/Application Support/JetBrains/<product><version>/plugins
- サンプル
~/Library/Application Support/JetBrains/CLion%instance-version%/plugins
- 構文
~/.local/share/JetBrains/<product><version>
- サンプル
~/.local/share/JetBrains/CLion%instance-version%
You can change the location of the CLion plugins directory using the idea.plugins.path property.
ログディレクトリ
CLion ログディレクトリには、製品ログとスレッドダンプが含まれています。
- 構文
%LOCALAPPDATA%\JetBrains\<product><version>\log
- サンプル
C:\Users\JohnS\AppData\Local\JetBrains\CLion%instance-version%\log
- 構文
~/Library/Logs/JetBrains/<product><version>
- サンプル
~/Library/Logs/JetBrains/CLion%instance-version%
- 構文
~/.cache/JetBrains/<product><version>/log
- サンプル
~/.cache/JetBrains/CLion%instance-version%/log
You can change the location of the CLion logs directory using the idea.log.path property.