The default English dictionary bundled with Eclipse is a bit weak, missing many words that are then wrongly marked as errors. I would thus like to change to a user dictionary; this seems to be possible in the dialogue Window > Preferences > General > Text Editors > Spelling.
I have tried providing the paths to the .gz and .rws files found in the aspell folders, but Eclipse accepts none. Which file is Eclipse exactly expecting in this dialogue?
The expected spelling dictionary format is a plain text file with one word per line.
I'll point to the preference page where it says this right under the text field:
If I sound annoyed, I am. Not by the questioner, but by the people that deleted #greg-449's original answer, who seemed to have little activity in any of the tags on this question, and by SO itself for having them review it.
Related
When i press Ctrl+Shift+R to open the Open Resource Dialog box, the filter box does not show most of the other resource files for example.. jsp, xml etc. it works fine with all the java files.. This is happening for only this particular java project. i have refreshed the project multiple times but still no-go. I have also rebuilt the index for eclipse under workspace/.metadata/.plugins/org.eclipse.jdt.core by deleting the index files but to no avail.
I am using eclipse Kepler version. Any help would be great..
Thanks All. Yes i had closed and opened the project many times. I have also not set any Resource filter exclusions. What i noticed was that opening any of these files for edit would set off an alert saying file was derived and would i like to edit? But on the properties for these file they were not ticked as derived but rather as Archived. So had to manually hunt for the parent folder which was making these files as derived. Also noticed that the Open Resource Dialog box has option for including Resource files "Show Derived Resources"...
This one helped me solve the problem
Eclipse treating all the files in a project as Derived
This is going to sound ridiculous...but maybe this'll help others too: make sure your file search string is correct! You may need to begin it with a wildcard (*).
I lost about 45 minutes on this as the result of user error.
I was looking for some local files named eRCaGuy_PPM_Writer.h and eRCaGuy_PPM_Writer.cpp (from my repo here). So, I pressed Ctrl + Shift + R and searched for ppm_writer, as shown here:
Nothing! It would not find those files! No matter what I did to the files it couldn't seem to find them. I tried all sorts of things. Then, I realized Eclipse doesn't have a fancy fuzzy search like Sublime Text 3, so I simply added an asterisk (*) to the front of the search, and voila! It works perfectly. Since the "PPM_Writer" part of those two file names is NOT at the beginning, I must start the search with a wildcard (*).
Now it works fine, as you can see here:
I've just added a note about this to my personal Eclipse setup and configuration instructions here: https://github.com/ElectricRCAircraftGuy/eRCaGuy_dotfiles/tree/master/eclipse (for my full documentation, see also the PDF and Google Drive links at the top of that page).
When I use eclipse and see my name in the javadocs as the author, I also find the spellchecker marking my name as it does not understand that it is a proper name. Thus, I get the option of:
Add {word} to dictionary
but when I click on it, It says the user dictionary is missing and asks if I would like to create a new one. When I say yes, it just shows the spell checking preferences with a blank user dictionary field where I have the option to only add an existing user dictionary and no option to create a new one.
How do I create the user dictionary so that I can configure it for use in eclipse?
When in C/C++, you must change the "Select spelling engine to use" option at the top of that options page to be "C/C++ spelling engine".
Yes, you can.
Create a text (.txt) file in a directory on your computer. Your Eclipse workspace may be appropriate. Add a new word on each line in the .txt file. You don't have to remember every word, that's what the help option is for, when you type a misspelling/a word eclipse doesn't know.
Go to Window → Preferences → General → Editors → Text Editors → Spelling and find the User defined dictionary section. To the right of that is a button called "Browse" click it, navigate to your text file, and choose it. You'll need to restart Eclipse in order for the changes to take effect.
You can also just type in the text box next to "User defined dictionary" in the Spelling Menu the path to where you want the file to be. It doesn't have to exist, but you must be familiar with paths if you want to do this.
The user dictionary is just a plain text file with one word per line.
You do not have to create this file, just put the path to where you want to store the file in the 'User defined dictionary' configuration that Eclipse shows you and it will create the file.
Another thing to watch out for, at least in Eclipse Kepler, is that the dictionary cannot be located in C:\ProgramFiles\eclipse. I could not add words to the dictionary when I put the file there, maybe because it doesn't have permission to that directory.
I'm late to the party, but for Eclipse I kept having a spelling check error pop up for the word "accessor" that I was using in a comment for a school project. I found that using #DonyorM / #Gabriel Staples comment helped me solve this problem.
I just went to Window → Preferences → General → Editors → Text Editors → Spelling and typed in the word I needed to add next to the "User defined dictionary" box. I then clicked browse, created a folder in my workspace labeled as "ECLIPSE DICTIONARY", then created a text file labeled as "DICTIONARY" in that folder. After creating and directing eclipse to use that pathway, it added the word automatically to the text file.
(Also, for clarification you don't have to label the folder and text file to what I labeled it as. I'm sure you could name it whatever you wanted.)
Now I don't have to look at that pesky red line underneath that particular word.
I regularly open files of different types in Eclipse. For many types, Eclipse uses the system editor by default. I don't want this to happen. I want Eclipse to use the built-in Text Editor for unknown file types. However all I can find are options to set the default editor for a certain file type, but not for all unknown ones. Is there an option to do this?
I don't think you can do this in one swoop, however:
Windows > Preferences > General > Editors > File Association.
If you don't have a LOT of unknown file types, just type *.junk, *.punk, *.clunck and add Text Editor as the default editor.
Sadly you can't use *.* here.
This issue with file associations is something that has always annoyed me with Eclipse. It is specially frustrating if you are trying to use Eclipse to edit files that don't have a file extension because then you can't even set a editor.
I searched over the Eclipse bug database and found my exact issue there. It was first reported in 2003 and up until now there is no solution for it. If you follow the long comment track over the years you will see that there is no way of setting a default editor for unknown file types. From what I gathered the problem boils down to eclipse not looking at the content of file to try to determine the type. Instead it fully depends on the file extension.
Some people have made suggestions for fixes but again nothing has come out of that. If you search the bug tracker DB you will find a lot more bugs created around this.
A clean solution to this is finally implemented in Eclipse.
On the Preferences > General > Editors > File Association page, you can now define an editor selection strategy for unassociated file types.
Source: https://www.eclipse.org/eclipse/news/4.6/platform.php#text-editor-selection-strategy
There is an Eclipse plugin that overrides the default behavior of the platform and opens text file of unknown type in the plain text editor of Eclipse instead in an external editor.
https://github.com/eclipselabs/default-text-editor
In Eclipse, when I press Ctrl+Shift+R to bring up the 'Open resource' dialog window, I can't figure out a way of searching only for javascript files (.js), as any search string I enter will always yield .jsp files as well.
I tried abc*.js (explicit file extension does not work, as still JSPs are returned), abc*.?? (trying to limit the length of extension to any TWO characters, still returns JSPs)... it's a bit annoying. Is there any way to get the window to return .js files only?
Wow, I managed to resolve this myself. It doesn't seem like the correct thing for Eclipse to do (naughty Eclipse, naughty, you should be ashamed of yourself) but it does work like a charm - it's as simple as typing a <space> after the search term.
So, instead of searching for "abc*.js" (which would yield .jsp results also), one can just type in "abc*.js " (followed by a space) and now only javascript files are presented in the results list. Voilà!
I asked about this in the Eclipse forums, and found a real solution.
There's already a question on this here. But i want to know if its possible to add autocomplete text support in a .txt file for english words (maybe from GNU Aspell dictionary)?
Something I've pondered myself, you could copy loads of "words" into the keyword list within the user-defined language dialogue. Not the best way!
If you have a look at the XML file in (vista);
C:\Users\yourusername\AppData\Roaming\Notepad++\userDefineLang.xml
Then you can see keywords are kept in one line. I bet, if you made have the entire english dictionary then it would likely crash notepad++.
You could put your idea into the Notepad++ IdeaTorrent for the developers too consider;
http://sourceforge.net/apps/ideatorrent/notepad-plus/ideatorrent/
UPDATE 06/11/2011 :
May I also add that a plugin now available for highlight misspelt words and auto correction.
http://sourceforge.net/projects/squiggly/