【问题标题】:PhpStorm: Can I add a new word to the global dictionary?PhpStorm:我可以在全球词典中添加一个新词吗?
【发布时间】:2020-05-22 05:17:37
【问题描述】:

我已将意大利语词典添加到 PhpStorm 以进行拼写。

我讨厌把这篇文章读给每个新项目。有没有办法让新词典默认添加?

另外,当我将新词添加到字典中时,该词只会添加到项目级字典中。我可以添加到 global(我的意思是 PhpStorm 级别)字典吗?

【问题讨论】:

    标签: dictionary phpstorm spelling


    【解决方案1】:

    您可以将 IDE 设置为将新单词保存到应用程序级别的字典中,而不是默认的项目级别。

    Settings/Preferences | Editor | Spelling | Use single dictionary for saving words

    不太确定该文件的存储位置(因为我更喜欢使用项目级别),但它可能是options\cachedDictionary.xml 文件。在 Windows 上,当前 2019.3 版本通常位于 C:\Users\USERNAME\.PhpStorm2019.3\config\ 文件夹中(Linux 类似:~/.PhpStorm2019.3/config/;MacOS 的路径略有不同,但文件名相同)。

    此类字典在 IDE 启动时加载一次;当然,您可以在 IDE 关闭时手动添加任何单词。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-06-07
      • 1970-01-01
      • 2021-04-21
      • 2014-07-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多