How to add a dictionary for spell check in Android Studio / IntelliJ Idea

后端 未结 5 499
轮回少年
轮回少年 2021-02-02 05:25

I have been using Android Studio in Spanish, and it bothers me that it highlights as incorrect words which are spelt correctly.

Can I add a Spanish dictionary to Android

5条回答
  •  灰色年华
    2021-02-02 06:26

    In Android Studio (1.2.1.1 - 2.3.3) you can find this here:

    File -> Settings -> Editor -> Spelling -> Dictionaries, and click "+" sign next to "Custom Dictionaries Folders" grid.

    Important Note: You need to use UTF-8 character coding in your "language.dic" file if you would like to use an exotic language like Hungarian, Spanish, Portuguese, etc.

    1. Download from http://www.winedt.org/dict.html the UNICODE language file.
    2. Unzip and open it with Windows Notepad.
    3. Use "Save as" and choose UTF-8 coding.
    4. Open this file with Android Studio: File -> Settings -> Editor -> Spelling -> Dictionaries, and click "+" sign next to "Custom Dictionaries Folders" grid.
    5. Restart Android Studio. Smile! You have not problems with nasty letters like "éÉíÍóÓöÖőŐúÚüÜűŰ".

提交回复
热议问题