How to detect instant AutoCorrect macros in Visual Studio?

By means of AutoCorrect instant macros, I mean as a list of common typos that I make, and what to replace them with. For example, every time I try to enter Layer, it returns "LAyer". I don’t use anything named "LAyer", so I would like it to automatically replace every instance of LAyer with a layer after I typed it.

(As an example of what I mean, go to Word and enter something like “Recomend.” It will immediately replace it with “Recommend” without prompting it by matching it in the list of common invalid names that can be found in the AutoCorrect options. )

+6
visual studio
source share
4 answers

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 
+3
source share

Create a Visual Studio plugin? Easily download Office spell checking and use it in a VS plug-in.

0
source share

try the free version of coderush from the express developer. His macro language should make it easy to recreate it. I use the paid version, but I would have thought that the free one would have this functionality

0
source share
0
source share

All Articles