|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Announcements
Chapters
Services
Feature Zones
|
IntroductionThis is a Visual Studio 2005 macro project which is intended to automate typical coding routines. What's new?Version 0.1.3
InstallationTo enable the
How to use the GapeUpon macrosAfter loading expand the
Right click -> Run or Double click on any macro to run it. Binding macros to the keyboardSome macros like "Quotes" and "Word" are extremely helpful only when they are bound to the keyboard. To bind a macro to the keyboard do the following:
DescriptionThis section provides a quick review on what each macro does and how it could be applied. BaseConstructorsCreates a set of constructors which correspond to the constructors of a base class if any. When we inherit a class from some base class which has a number of constructors we have to do a lot of work redeclaring our constructors in the way they conform with the constuctors of the base class. We have to feed all the base constructors with the parameters they require. This macro creates constructors redeclaring and passing parameters to the base constructors. HOW TO RUN: Place cursor anywhere inside of the class and run the macro. GenerateConstructorCreates a parameterized constructor each parameter of which corresponds to a HOW TO RUN: Place cursor anywhere inside of the class and run the macro. GeneratePropertiesGenerates properties for each HOW TO RUN: Place cursor anywhere inside of the class and run the macro. GuardConditionsCreates guard conditions for a method. If method takes a parameter of the reference type in most cases it must be checked for being not HOW TO RUN: Place cursor anywhere inside of the method and run the macro. QuotesCycles the insertion of various types of quoted string. Simplifies putting variables into a string constant. HOW TO RUN: Make sure the macro is bound to the keyboard (see "Binding macros to the keyboard" above). Keep hitting the macro's shortcut keys when you are editing a string constant and want to put quotes into it. UndonePlaces a HOW TO RUN: Place cursor anywhere inside of the method and run the macro. WordCycles variants of a variable's name based on the name of its type. Quite often the name of the variable is a part or the whole name of its type, so when we declare the variable we have to do the same work twice. This macro eliminates the routine work of naming variables. HOW TO RUN: Make sure the macro is bound to the keyboard (see "Binding macros to the keyboard" above). Enter a type of a variable you want to declare and then hit the shortcut keys number of times. See alsoTo see the current status and get latest releases, to report a bug or submit a feature, I request you to visit the GapeUpon project page at SourceForge.Net. I appreciate any feedback.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||