# 智能键设置：JSON

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

> **TL;DR**
> `文件 | 设置 | 编辑器 | 常规 | 智能键 | JSON`  适用于 Windows 和 Linux
>
>
>
> `%instance% | 设置 | 编辑器 | 常规 | 智能键 | JSON`  适用于 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)

使用此设置页面配置 JSON 中的输入辅助功能。

有关 CLion 中 JSON 支持的详细信息，请参阅 [JSON](json.html)。

|  项  |  描述  |
| --- | --- |
|  在回车时插入缺失的逗号  |    开启（默认）:    [Video](https://resources.jetbrains.com/help/img/idea/2026.3/insert_missing_comma_on_enter_on.mp4)   关闭:    [Video](https://resources.jetbrains.com/help/img/idea/2026.3/insert_missing_comma_on_enter_off.mp4)    |
|  在匹配的大括号和引号后插入缺失的逗号  |    开启（默认）:    [Video](https://resources.jetbrains.com/help/img/idea/2026.3/insert_missing_comma_after_matching_braces_on.mp4)   关闭:    [Video](https://resources.jetbrains.com/help/img/idea/2026.3/insert_missing_comma_after_matching_braces_off.mp4)    |
|  粘贴 JSON 片段时自动管理逗号  |    开启（默认）:    [Video](https://resources.jetbrains.com/help/img/idea/2026.3/ws_json_manage_commas_on_paste.mp4)   关闭:    [Video](https://resources.jetbrains.com/help/img/idea/2026.3/ws_json_manage_commas_on_paste_off.mp4)    |
|  在字符串文本中粘贴时转义文本  |    开启（默认）:    [Video](https://resources.jetbrains.com/help/img/idea/2026.3/escape_text_on_paste_on.mp4)   关闭:    [Video](https://resources.jetbrains.com/help/img/idea/2026.3/escape_text_on_paste_off.mp4)    |
|  输入 ':' 时自动为属性名称添加引号  |    开启（默认）:    [Video](https://resources.jetbrains.com/help/img/idea/2026.3/add_quotes_on_typing_semicolon_on.mp4)   关闭:    [Video](https://resources.jetbrains.com/help/img/idea/2026.3/add_quotes_on_typing_semicolon_off.mp4)    |
|  输入属性名称后输入 ':' 时自动添加空格  |    开启（默认）:    [Video](https://resources.jetbrains.com/help/img/idea/2026.3/add_whitespace_on_typing_semicolon_on.mp4)   关闭:    [Video](https://resources.jetbrains.com/help/img/idea/2026.3/add_whitespace_on_typing_semicolon_off.mp4)    |
|  如果在引号内输入 ':'，则自动将其移到属性名称后  |    ON:    [Video](https://resources.jetbrains.com/help/img/idea/2026.3/move_semicolon_outside_quotes_on.mp4)   关闭（默认）:    [Video](https://resources.jetbrains.com/help/img/idea/2026.3/move_semicolon_outside_quotes_off.mp4)    |
|  如果属性值或数组元素在引号内，则自动将逗号移到其后  |    ON:    [Video](https://resources.jetbrains.com/help/img/idea/2026.3/move_comma_outside_quotes_on.mp4)   关闭（默认）:    [Video](https://resources.jetbrains.com/help/img/idea/2026.3/move_comma_outside_quotes_off.mp4)    |

