Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

It is required to have a dictionary for Intellij Idea spellchecking, that meets the following requirements:

  1. May be shared by VCS, so all developers can use it
  2. Every developer should be able to edit it easily

As far as I know, where are 2 types of dictionaries in Idea:

  1. One user dictionary, named "%username%.xml" (Settings-->Spelling-->Accepted Words)
  2. Number of custom dictionaries, "*.dic" (Settings-->Spelling-->Dictionaries)

But none of them meets the requirements.

User dictionary is easy to edit (Alt+Enter "Save ... to dictionary") and can be added to VCS, but it has a predefined user name, so it's impossible to share (e.g. developer A shared his A.xml, but developer B can't use it, because his Idea project only works with B.xml)

Custom dictionary has no problems with sharing, but it should be edited manually and it needs to reestart Idea to apply changes (e.g. make it see new words)

I've not found a plugin to solve that problem or any similar question, which makes me think that nobody needs such dictionary or the answer is too obvious.

So, is there any way to do it?

question from:https://stackoverflow.com/questions/28147162/how-to-create-a-shared-editable-dictionary-for-intellij-idea-spellchecking

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
197 views
Welcome To Ask or Share your Answers For Others

1 Answer

Note that, even though the words added to the dictionary by each developer are stored in a separate file, IntelliJ IDEA takes the words added by all developers, and does not highlight any of them as typos. The storage in separate files was designed specifically to avoid merge conflicts when storing the dictionary in a version control system.

Therefore, the default functionality of IntelliJ IDEA should meet your requirements.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share

548k questions

547k answers

4 comments

86.3k users

...