69

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 Studio or to my IntelliJ Idea?

geekley
  • 1,231
  • 10
  • 27
Cristian Cañadas
  • 733
  • 1
  • 6
  • 9

5 Answers5

98

You can download the Spanish (or any other language) ASCII dictionary from http://www.winedt.org/dictASCII.html and then add it to Android Studio as sebaszw said:

  1. Go to Settings -> Spelling -> Dictionaries
  2. Click plus symbol(+)
  3. Select path to your dictionaries folder (inside you must have plaintext word lists with .dic extension)
  4. Restart Android Studio

It worked for me without restarting Android Studio

Community
  • 1
  • 1
victor.hernandez
  • 2,462
  • 2
  • 27
  • 32
42

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 "éÉíÍóÓöÖőŐúÚüÜűŰ".
Abigail La'Fay
  • 749
  • 1
  • 9
  • 18
  • 3
    thanks! it fixed the accent marks (á, é, í, ó, ú) (spanish) – Matias Elorriaga Feb 13 '16 at 07:18
  • 1
    Further more Android Studio will do nothing if the file is UTF-16 ! It has to be specifically UTF-8. It can be done like so "iconv -f utf-16 -t utf-8 myfile -o myfile_utf8" It might have to do with grep which also can't use UTF-16? http://www.kaapstorm.com/post/how-to-grep-utf-16/ – CaptainCrunch Sep 19 '16 at 18:15
  • Also worth noting that if it bothers you that much, you may want to disable spell checking in comments when using a dictionary for agglutinative languages (such as Hungarian to stay at your examples). Actual code elements are likely to be simple language-wise, but comments often contain words that cannot be resolved by dictionaries - they probably don't contain words with a prefix and 5 suffixes, or similar complexity. – sisisisi Nov 10 '18 at 16:47
  • For the German dictionary, iconv did not work with UTF-16 as input encoding. I had to use `iso-8859-1` (AKA "Latin-1"). – roskakori Jun 09 '22 at 09:28
  • Thanks, this fixes German encoding. Should be the accepted answer! – Pinolpier Jul 24 '22 at 15:46
7
  1. Go to Settings -> Spelling -> Dictionaries
  2. Click +
  3. Select path to your dictionaries folder (inside you must have plaintext word lists with .dic extension)
  4. Restart Android Studio
sebaszw
  • 1,404
  • 2
  • 14
  • 19
5

Its Very Easy

Step 1: Go to File -> Settings -> Editor -> Spelling

Step 2: In Spelling -> select Tab 'Dictionaries'

Step 3: Click on '+'

Step 4: Select File that You want to put(file must be .dic extension)

Remember by default English language dictionary comes.

RESTART Android Studio is necessary.

Pinak Gauswami
  • 789
  • 6
  • 10
-3

Go into your Settings. Under "Language and Keyboard", go to and select "Android Keyboard" -> "Input language". Choose Spanish. That should do it!

Or, on Android 4, go to Settings -> Language & Keyboard -> Touch Input (settings button) -> Personal Dictionary -> Edit personal dictionary

The following link shows how to implement a spellchecker - you can implement this for multiple languages.

Robert Columbia
  • 6,313
  • 15
  • 32
  • 40
Rachel Gallen
  • 27,943
  • 21
  • 72
  • 81