Killer IDE macro

My blog has moved.
You can view this post at the following address:
http://www.osherove.com/blog/2003/2/10/killer-ide-macro.html
Published Monday, February 10, 2003 9:55 AM by RoyOsherove

Comments

Friday, February 14, 2003 12:59 AM by Wes Haggard

# Quick Code.Net

If you really would like to inscrease your productive by having "shortcut code" inserted you should check out QuickCode.Net (http://quickcode.dvxp.com/). You can setup code templates and insert them based on a pattern. For example I have simple pattern "{" and when I hit the Shift-Enter key(hotkey I gave the command) it will insert
{
(Cursor)
}
just like your macro. You can do the same thing for your try/catch blocks or any other shortcut code.

Wes
Saturday, January 17, 2004 4:46 PM by diffDrummer

# re: Killer IDE macro

Been using this for so many years it startles me when I have to code on someone elses box.
Differences:
visual C++ 6.0
desired open brace position
hotkey: shift [ (which is why it startles me as aboce)

Sub CreateBrackets() 'shift [
ActiveDocument.Selection = "{"
ActiveDocument.Selection.NewLine
ActiveDocument.Selection = "}"
ActiveDocument.Selection.CharLeft
ActiveDocument.Selection.Backspace
ActiveDocument.Selection.LineUp
ActiveDocument.Selection.EndOfLine
End Sub