# IDE で使用されるディレクトリ

> For the complete documentation index, see [llms.txt](https://www.jetbrains.com/ja-jp/help/clion/llms.txt).

By default, CLion stores user-specific files for each IDE instance (configuration, caches, plugins, logs, and so on) in the user's home directory. ただし、必要に応じて、これらのファイルを保存する場所を変更できます。

Procedure: IDE で使用されるファイルとディレクトリを見つける

1. メインメニューから  `ヘルプ | 診断ツール | 特別なファイルとフォルダー`  を選択します。

2. In the dialog that opens, you will see all files and directories used by CLion with their exact paths for the current installation.

3. リスト内の特定の項目を選択して `Alt+Enter` (Windows), `⌥ ⏎` (macOS), `⌥ ⏎` (IntelliJ IDEA Classic (macOS)), `⌥ ⏎` (macOS System Shortcuts), `Alt+Enter` (XWin), `Alt+Enter` (GNOME), `Alt+Enter` (KDE), `Alt+Enter` (Emacs), `Alt+Enter` (Sublime Text), `⌥ ⏎` (Sublime Text (macOS)), `⌥ ⏎` (Xcode), `Alt+Enter` (Visual Studio), `⌥ ⏎` (Visual Studio (macOS)), `Alt+Enter` (ReSharper), `⌥ ⏎` (ReSharper (macOS)), `Alt+Enter` (QtCreator), `⌥ ⏎` (QtCreator (macOS)), `Alt+Enter` (NetBeans), `Ctrl+1` (Eclipse), `⌘ 1` (Eclipse (macOS)) キーを押すか、右クリックして「その項目を含むフォルダーに表示」を選択するか、フルパスをコピーすることができます。 For files, there is also an option to open the file in the CLion editor.

Procedure: IDE ディレクトリの場所を変更する

たとえば、ユーザープロファイルドライブの容量が不足している場合や低速ディスクにある場合、ホームディレクトリが暗号化されている（IDE の速度が低下している）場合、またはネットワークドライブにある場合は、デフォルトの IDE ディレクトリを移動できます。ポータブルインストールを作成したり、ホームディレクトリのバックアップからキャッシュを除外したりする必要があります。

1. `ヘルプ | カスタムプロパティの編集`  に進みます。

2. 必要なディレクトリに対応するプロパティを設定します:

|  プロパティ  |  パス  |
| --- | --- |
|   `idea.config.path`   |  [構成ディレクトリ](#config-directory)  |
|   `idea.system.path`   |  [システムディレクトリ](#system-directory)  |
|   `idea.plugins.path`   |  [プラグインディレクトリ](#plugins-directory)  |
|   `idea.log.path`   |  [ログディレクトリ](#logs-directory)  |

> **Warning:**
> 異なるプロパティに同じディレクトリを指定しないでください。 This may prevent CLion from starting.

`idea.properties`  ファイルを編集するときは、Windows パス (例:  `C:/idea/system`  ) を含む、スラッシュ  `/`  を含むパスを指定します。

他のプロパティを変数として挿入できます。 例:  `${user.home}`  （標準の Java システムプロパティ）を使用して、ユーザーのホームディレクトリからの相対パスを指定します。

```PLAINTEXT
idea.config.path=${user.home}/MyIdeaConfiguration

```

3. After you restart CLion, it will use the new location of the corresponding directory.

Procedure: 古い 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. 構成ディレクトリとプラグインディレクトリは、手動で削除しない限り、永久に残ります。

1. `ヘルプ | 旧バージョンの IDE ディレクトリを削除…`  に進みます。

2. 以前のバージョンの IDE ストレージディレクトリを削除   ダイアログで、使用する予定のない IDE のバージョンを選択し、   削除   をクリックします。

## 構成ディレクトリ

The CLion configuration directory contains user-defined IDE settings, such as keymaps, color schemes, custom [VM options](tuning-the-ide.html#configure-jvm-options), [platform properties](tuning-the-ide.html#configure-platform-properties), and so on.

Windows:

構文
: `%APPDATA%\JetBrains\<product><version>`

サンプル
: `C:\Users\JohnS\AppData\Roaming\JetBrains\CLion​%instance-version%`

macOS:

構文
: `~/Library/Application Support/JetBrains/<product><version>`

サンプル
: `~/Library/Application Support/JetBrains/CLion​%instance-version%`

Linux:

構文
: `~/.config/JetBrains/<product><version>`

サンプル
: `~/.config/JetBrains/CLion​%instance-version%`

You can change the location of the CLion configuration directory using the [idea.config.path](#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`   |  カスタマイズされた [コードスタイルスキーム](configuring-code-style.html)  |
|   `colors`   |  カスタマイズされた [エディターの色とフォントスキーム](configuring-colors-and-fonts.html)  |
|   `fileTemplates`   |  ユーザー定義の [ファイルテンプレート](using-file-and-code-templates.html)  |
|   `filetypes`   |  User-defined [file types](creating-and-registering-file-types.html)  |
|   `inspection`   |  [コードインスペクションのプロファイル](code-inspection.html)  |
|   `keymaps`   |  Customized [keyboard shortcuts](configuring-keyboard-and-mouse-shortcuts.html)  |
|   `options`   |  さまざまなオプション（たとえば、機能の使用統計やマクロなど）  |
|   `scratches`   |  [スクラッチファイルとバッファ](scratches.html)  |
|   `settingsSync`   |  [バックアップと同期](sharing-your-ide-settings.html#IDE_settings_sync)を使用して共有される IDE 設定  |
|   `templates`   |  ユーザー定義の [ライブテンプレート](using-live-templates.html)  |
|   `tools`   |  [ユーザー定義の外部ツール](configuring-third-party-tools.html)の設定ファイル  |

## システムディレクトリ

CLion システムディレクトリには、キャッシングとローカル履歴ファイルが含まれています。

Windows:

構文
: `%LOCALAPPDATA%\JetBrains\<product><version>`

サンプル
: `C:\Users\JohnS\AppData\Local\JetBrains\CLion​%instance-version%`

macOS:

構文
: `~/Library/Caches/JetBrains/<product><version>`

サンプル
: `~/Library/Caches/JetBrains/CLion​%instance-version%`

Linux:

構文
: `~/.cache/JetBrains/<product><version>`

サンプル
: `~/.cache/JetBrains/CLion​%instance-version%`

You can change the location of the CLion system directory using the [idea.system.path](#idea.system.path) property.

キャッシュファイルの削除の詳細については、 [キャッシングの無効化](invalidate-caches.html)を参照してください。

## プラグインディレクトリ

CLion プラグインディレクトリには、ユーザーがインストールしたプラグインが含まれています。

Windows:

構文
: `%APPDATA%\JetBrains\<product><version>\plugins`

サンプル
: `C:\Users\JohnS\AppData\Roaming\JetBrains\CLion​%instance-version%\plugins`

macOS:

構文
: `~/Library/Application Support/JetBrains/<product><version>/plugins`

サンプル
: `~/Library/Application Support/JetBrains/CLion​%instance-version%/plugins`

Linux:

構文
: `~/.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](#idea.plugins.path) property.

> **Note:**
> If you installed CLion through the [Toolbox App](https://www.jetbrains.com/ja-jp/toolbox/app/), the plugins directory will be located in the [standard IDE directory](#plugins-directory) for user-installed plugins.

## ログディレクトリ

CLion ログディレクトリには、製品ログとスレッドダンプが含まれています。

Windows:

構文
: `%LOCALAPPDATA%\JetBrains\<product><version>\log`

サンプル
: `C:\Users\JohnS\AppData\Local\JetBrains\CLion​%instance-version%\log`

macOS:

構文
: `~/Library/Logs/JetBrains/<product><version>`

サンプル
: `~/Library/Logs/JetBrains/CLion​%instance-version%`

Linux:

構文
: `~/.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](#idea.log.path) property.

> **Tip:**
> 対応する   ヘルプ   メニューアクション（Windows の場合は   エクスプローラーでログインを表示​   、macOS の場合は   Finder でログインを表示​   ）を使用して、ログディレクトリの場所を開くことができます。

