# スマートキーの設定: SQL

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

> **TL;DR**
> `ファイル | 設定 | エディター | 一般 | スマートキー | SQL`  (Windows および Linux 用)
>
>
>
> `%instance% | 設定 | エディター | 一般 | スマートキー | SQL`  (macOS 用)
>
>
>
> `Ctrl+Alt+S` (Windows), `⌘ Comma` (macOS), `⌘ Comma` (IntelliJ IDEA Classic (macOS)), `⌘ Comma` (macOS System Shortcuts), `Ctrl+Alt+S` (XWin), `Ctrl+Alt+S` (GNOME), `Ctrl+Alt+S` (KDE), `Ctrl+Alt+S` (Emacs), `Ctrl+Alt+S` (Sublime Text), `⌘ Comma` (Sublime Text (macOS)), `⌘ Comma` (Xcode), `Ctrl+Alt+S` (Visual Studio), `⌘ Comma` (Visual Studio (macOS)), `Ctrl+Alt+S` (ReSharper), `⌘ Comma` (ReSharper (macOS)), `Ctrl+Alt+S` (QtCreator), `⌘ Comma` (QtCreator (macOS)), `Ctrl+Alt+S` (NetBeans), `Ctrl+Alt+S` (Eclipse), `⌘ Comma` (Eclipse (macOS)) ![設定アイコン](https://resources.jetbrains.com/help/img/idea/2026.3/app.expui.general.settings.svg)

この設定ページを使用して、SQL の入力支援機能を構成します。

CLion における SQL サポートの詳細については、 [データベースツールおよび SQL](relational-databases.html) を参照してください。

|  項目  |  説明  |
| --- | --- |
|  Enter キーで文字列連結を挿入する  |     使用している DBMS が複数行の文字列リテラルをサポートしている場合は、このオプションをオフにしてください：       PostgreSQL  `text`  の値  `notes`  には、次のような断片があります。       ```SQL SET notes = 'Lightest element' ```      キャレットは  `element`  という単語の前にあります。       オプションがオンで、 `Enter` (Windows), `⏎` (macOS), `⏎` (IntelliJ IDEA Classic (macOS)), `⏎` (macOS System Shortcuts), `Enter` (XWin), `Enter` (GNOME), `Enter` (KDE), `Enter` (Emacs), `Enter` (Sublime Text), `⏎` (Sublime Text (macOS)), `⏎` (Xcode), `Enter` (Visual Studio), `⏎` (Visual Studio (macOS)), `Enter` (ReSharper), `⏎` (ReSharper (macOS)), `Enter` (QtCreator), `⏎` (QtCreator (macOS)), `Enter` (NetBeans), `Enter` (Eclipse), `⏎` (Eclipse (macOS)) を押すと、フラグメントは次のように変わります:       ```SQL SET notes = 'Lightest ' \|\| 'element' ```      それ以外の場合、フラグメントは次のように変更されます：       ```SQL SET notes = 'Lightest element' ```    |
|  Enter でコードブロックを閉じる  |     開始キーワード（BEGIN、LOOP、BEGIN TRY など）でコードブロックを開始して `Enter` (Windows), `⏎` (macOS), `⏎` (IntelliJ IDEA Classic (macOS)), `⏎` (macOS System Shortcuts), `Enter` (XWin), `Enter` (GNOME), `Enter` (KDE), `Enter` (Emacs), `Enter` (Sublime Text), `⏎` (Sublime Text (macOS)), `⏎` (Xcode), `Enter` (Visual Studio), `⏎` (Visual Studio (macOS)), `Enter` (ReSharper), `⏎` (ReSharper (macOS)), `Enter` (QtCreator), `⏎` (QtCreator (macOS)), `Enter` (NetBeans), `Enter` (Eclipse), `⏎` (Eclipse (macOS)) を押すと、コードブロックは対応する終了キーワード（END、END LOOP、END TRY など）で閉じます。      ![Enter でコードブロックを閉じる](https://resources.jetbrains.com/help/img/idea/2026.3/db_close_code_blocks_on_enter.animated.gif)  |

