# 智能键设置：Ruby

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

> **TL;DR**
> `文件 | 设置 | 编辑器 | 常规 | 智能按键 | Ruby`  适用于 Windows 和 Linux
>
>
>
> `%instance% | 设置 | 编辑器 | 常规 | 智能按键 | Ruby`  适用于 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)), `Ctrl+Alt+S` (Visual Studio), `⌘ Comma` (Visual Studio (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)

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

关于 IntelliJ IDEA 中对 Ruby 的支持，请参见 [Ruby](ruby-plugin.html)。

|  条目  |  描述  |
| --- | --- |
|  在字符串中以 # 开始 Ruby 插值  |  启用此选项，可在双引号字符串中输入 # 后自动添加花括号。  |
|  按输入键时继续注释  |  如果启用，IntelliJ IDEA 在按下 `Enter` (Windows), `⏎` (macOS), `⏎` (IntelliJ IDEA Classic (macOS)), `⏎` (macOS System Shortcuts), `Enter` (XWin), `Enter` (GNOME), `Enter` (KDE), `Enter` (Emacs), `Enter` (Sublime Text), `⏎` (Sublime Text (macOS)), `Enter` (Visual Studio), `⏎` (Visual Studio (macOS)), `Enter` (NetBeans), `Enter` (Eclipse), `⏎` (Eclipse (macOS))后会自动在下一行插入 #。  |

## See also

### 过程

[Ruby](ruby-plugin.html)

