# 定義を生成する

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

クラスまたは名前空間に関数の宣言が存在するが、まだ実装されていない場合は、   定義を生成する   アクションを使用してその関数の定義 (実装) を作成できます。

Procedure: 関数定義を生成する

1. エディターにキャレットを置き、次のいずれかを実行します。

* `Ctrl+Shift+D` (Windows), `⌘ ⇧ D` (macOS), `⌘ ⇧ D` (IntelliJ IDEA Classic (macOS)), `⌘ ⇧ D` (macOS System Shortcuts), `Ctrl+Shift+D` (XWin), `Ctrl+Shift+D` (GNOME), `Ctrl+Shift+D` (KDE), `Ctrl+Shift+D` (Emacs), `Ctrl+Shift+D` (Sublime Text), `⌘ ⇧ D` (Sublime Text (macOS)), `⌘ ⇧ D` (Xcode), `Ctrl+Shift+D` (Visual Studio), `⌘ ⇧ D` (Visual Studio (macOS)), `Ctrl+Shift+D` (ReSharper), `⌘ ⇧ D` (ReSharper (macOS)), `Ctrl+Shift+D` (QtCreator), `⌘ ⇧ D` (QtCreator (macOS)), `Ctrl+Shift+D` (NetBeans), `Ctrl+Shift+D` (Eclipse), `⌘ ⇧ D` (Eclipse (macOS)) を押す。

* Press `Ctrl+Shift+D` (Windows), `⌘ ⇧ D` (macOS), `⌘ ⇧ D` (IntelliJ IDEA Classic (macOS)), `⌘ ⇧ D` (macOS System Shortcuts), `Ctrl+Shift+D` (XWin), `Ctrl+Shift+D` (GNOME), `Ctrl+Shift+D` (KDE), `Ctrl+Shift+D` (Emacs), `Ctrl+Shift+D` (Sublime Text), `Ctrl+Shift+D` (Sublime Text (macOS)), `⌘ ⇧ D` (Xcode), `Ctrl+Shift+D` (Visual Studio), `⌘ ⇧ D` (Visual Studio (macOS)), `Ctrl+Shift+D` (ReSharper), `⌘ ⇧ D` (ReSharper (macOS)), `Ctrl+Shift+D` (QtCreator), `⌘ ⇧ D` (QtCreator (macOS)), `Ctrl+Shift+D` (NetBeans), `Ctrl+Shift+D` (Eclipse), `⌘ ⇧ D` (Eclipse (macOS)) and select 定義の生成 : ![生成ポップアップ](https://resources.jetbrains.com/help/img/idea/2026.3/cl_GenerateDefinitionsPopup.png)

2. 定義を生成する関数を 1 つ以上選択します。

![定義の生成ダイアログ](https://resources.jetbrains.com/help/img/idea/2026.3/cl_generateDefinitionsDialog.png)

> **Tip:**
> メンバー関数の場合は、   インプレースで生成   チェックボックスを使用します。
>
> * クラス内の宣言ではなく定義を生成するには、このチェックボックスをオンにします。
>
> * スコープ解決演算子 ( `::` ) を使用してクラス外部に定義を生成するには、このチェックボックスをオフにします。

3. OK   をクリックして適用します。

## See also

### プロシージャ

[Generating Code](generating-code.html)

### 外部リンク

[JetBrains Clion Blog](http://blog.jetbrains.com/clion/)

