mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-24 08:03:19 +00:00
feat(spelling): save typos to custom dictionaries with a default dictionary setting (#5466)
Co-authored-by: muutot <92625353+muutot@users.noreply.github.com>
This commit is contained in:
@@ -72,9 +72,10 @@ The **Proofreading › Typo** inspection checks words in comments, string litera
|
||||
On a typo, `⌥↵` / `Alt+Enter` offers:
|
||||
|
||||
- **Typo: Change to…** (comments, strings, text) or **Typo: Rename to…** (a declared name, done through Rename so references follow);
|
||||
- saving the word to the project-level or application-level dictionary.
|
||||
- saving the word to the project-level or application-level dictionary, or to one of your custom dictionaries (listed by their configured paths; the word is appended to the file, created when missing — a Hunspell `.dic` keeps its word count line);
|
||||
- when no custom dictionary is configured, opening the Spelling settings to add one.
|
||||
|
||||
Manage the project and application dictionaries, and add your own dictionary files, in **Settings › Editor › Natural Languages › Spelling**. Typo's severity and options are in **Settings › Editor › Inspections** like any other inspection.
|
||||
Manage the project and application dictionaries, and add your own dictionary files, in **Settings › Editor › Natural Languages › Spelling**. The page's **Default dictionary** selects where the plain "Save '…' to dictionary" row writes (project dictionary by default); the → submenu always offers every dictionary. Typo's severity and options are in **Settings › Editor › Inspections** like any other inspection.
|
||||
|
||||
## Before committing
|
||||
|
||||
|
||||
@@ -72,9 +72,10 @@ description: "编辑器和问题工具窗口中的问题、快速修复与意图
|
||||
在拼写错误上按 `⌥↵` / `Alt+Enter` 可以:
|
||||
|
||||
- **拼写错误:更改为…**(注释、字符串和文本)或 **拼写错误:重命名为…**(声明的名称,通过重命名完成,引用会一并更新);
|
||||
- 把这个词保存到项目级或应用程序级词典。
|
||||
- 把这个词保存到项目级或应用程序级词典,或保存到某个自定义词典(按配置的路径列出;单词会追加到文件里,文件不存在时会创建——Hunspell `.dic` 的词数行会同步更新);
|
||||
- 尚未配置自定义词典时,打开拼写设置页添加一个。
|
||||
|
||||
项目词典、应用程序词典和自定义词典文件在 **设置 › 编辑器 › 自然语言 › 拼写** 中管理。拼写错误检查的严重性和选项与其他检查一样,在 **设置 › 编辑器 › 检查** 中设置。
|
||||
项目词典、应用程序词典和自定义词典文件在 **设置 › 编辑器 › 自然语言 › 拼写** 中管理。页顶的 **默认词典** 决定「将 '…' 保存到词典」行的写入目标(默认项目词典);→ 子菜单始终列出全部词典。拼写错误检查的严重性和选项与其他检查一样,在 **设置 › 编辑器 › 检查** 中设置。
|
||||
|
||||
## 提交之前
|
||||
|
||||
|
||||
Reference in New Issue
Block a user