Suppose you always make the same typo, like 'hte' for 'the', or 'forgeign' for 'foreign', etc.
What methods do you use to break the habit and teach yourself the correct spelling?
Depending on the amount of words you mistype and the editor you use, you could make so those specific typos are highlighted but not corrected. (I am thinking about vim)
Some others will go the other route to make abbreviations and the editor will correct those typos for them.
I am personally more of the first type, and I'll be more aware when I type those words so they don't get colored in RED on my screen ;)
If it's not a CLI, then I always check the words with red lines, and either allow it to be corrected or add it to my dictionary. Works with Atom, as I'm sure it does with other editors. I'm a weirdo that turns off auto-correct or the list of recommended terms that inserts the proper term for you.
When it comes to this type of thing, it could also be the position of your hand on the keyboard, what keyboard you're using, the height of the surface that it's sitting on or the position of the chair... along with a million other things.
Don't ignore what you type, as you type it. A lot of my colleagues have sped through their code. Almost as if they weren't caring for it properly. Spacing, proper nesting (-=cough=- with tabs -=cough=-) - every code block should be well structured and composed with a small sense of pride.
The fingers have a way of "knowing" where to place themselves after a while, so if it's not about where they're going - but how to get there - train them by typing the word a hundred times in your editor.
Once you train your mind to understand and apply a pattern, that's always the path it will take.
Marco Alka
Software Engineer, Technical Consultant & Mentor
I usually type quickly without looking at the keyboard using my own 10-finger-system I developed naturally (never bothered to train the official one). Though it allows me to type long texts quickly, I sometimes mistype words. Usually, though, it's not the same word over and over again. However, when it happens (sometimes I am just tired or I might have a strange mood~), I start typing that word more slowly, even watching my fingers on the keyboard, down to a tempo at which I can better control my fingers and stop mistyping. When working on a long text, I usually can increase the speed after a while again.
To put it in a nutshell, my advice would be to watch out for words you regularly mistype and slow down. Concentrate on the word, on the fingers. How do you type it, which finger hits which button and in which order? Get your fingers to memorize the word slowly, then increase the tempo naturally as you feel more and more confident typing the word correctly :)