I have exactly the same problem (except that I usually cheat on a whole bunch of words). I recently printed "chnage" instead of changing a lot . (In the code I'm working on right now, I have classes called ChangedRecord and ChangedDatum, and the number of typos I'm doing is just not funny)
In another thread, someone posted a link to AutoHotkey .
I thought I would give it back, and I have to say that I think this is a great application (it can do a lot more than what we want.)
The following is an AutoHotKey script file that should replace the LAyer hotline with Layer as soon as you type it. I defined it so that it will only be fixed if you exactly match the case, so it will leave a “layer” and a “LaYeR” etc.
Also in the script there is a hotline "chnage". It is defined so that it matches the case of the word entered - that is, "Chnage" becomes "Change", and "ChnagedRecord" becomes "ChangedRecord" (note that it will change "CHnaGe" to "Change").
An additional advantage (most of the time - see the comment below) is that these replacements are performed in all applications, and not just in Visual Studio.
; ; AutoHotkey Version: 1.x ; Language: English ; Platform: Win9x/NT ; Author: ANOther < myemail@nowhere.com > ; ; Script Function: ; Template script (you can customize this template by editing "ShellNew\Template.ahk" in your Windows folder) ; #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. SendMode Input ; Recommended for new scripts due to its superior speed and reliability. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. :*:chnage::change :c1*:LAyer::Layer
Chris fewtrell
source share