Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create a shared editable dictionary for Intellij Idea spellchecking?

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?

like image 645
kdoker Avatar asked Jan 26 '15 09:01

kdoker


People also ask

How do I enable spell check in Intellij?

Press Ctrl+Alt+S to open the IDE settings and select Editor | Natural Languages | Spelling. Add words to the Accepted words list.

How do I get rid of Typo error in Intellij?

-> Uncheck the options that you want to disable. 2: File>>Settings>>Inspections>>Spelling>>Typo but File>>Settings and search "spelling" is better! :) Just to be clear, the options you can disable will be in the right-hand column after you click on "Typo". Checking the "Typo" checkbox disables them all.

How do I turn off spell check in Pycharm?

Disable spellcheckingPress Ctrl+Alt+S to open the IDE settings and select Editor | Inspections. Clear the checkbox next to the Typo inspection.


1 Answers

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.

like image 198
yole Avatar answered Oct 06 '22 11:10

yole