Auto spelling correction
Answered
The number of times I have typed publci instead of public - it would be great if intellij could autocorrect this sort of thing like Word does!
I know IntelliJ will autocomplete public, so I guess retraining my fingers is the other option...
Please sign in to leave a comment.
I know this is ancient but ... I have recently started typing clinet instead of client in about 1 in 5 attempts. 1) I know I should be a better typist and 2) well that is enough.
Quite a few packages have an auto-correct feature where you can add a misspelt/misspelled word and link it to the correct spelling. Just would be nice today!
Steve
PS Misspelt was the preferred British spelling until about 1970. Go figure.
please check https://www.jetbrains.com/help/idea/spellchecking.html
Yup, was looking for the same.
For some reason I find it hard to type the word 'const',
Often resulting in 'coinst' and 'coonst'.
It could be so easy to replace these automatically.
Even microsoft word has a feature to define auto-spelling correction.
There, you ca just enter a list of words and what to replace them with.
There is an existing feature request https://youtrack.jetbrains.com/issue/IDEABKL-6806, but it's shelved as the request and possible implementation can have many contradictions/inconsistency, please check replies in the ticket.
Not a great solution, but it is built-in:
If you want to just fix clumsy typos—personally I type `cosnt` instead of `const` way too often—you can add a Live Template for that specific mistake, using your typo as the abbreviation, and the correct spelling as the template text, and set it to accept on space (assuming you type the whole mispelled word before realizing). Also make sure to add a space at the end of the template text, and turn off `Reformat according to style` to emulate an autocorection.
Not great if you have a lot of different ways to typo, but good enough for tiny, consistent typos like mine.