![]() ![]() If you want to know more about the Macro Creation, Configuration, Keyword assignment Please read one of my previous article for step by step guide.Īdd document header for files automatically in Visual Studio.īelow is the sample macro code block for macroĭim NewGUID As String = String.Format("", (().ToString().ToUpper()))ĭTE.(NewGUID, vsInsertFlags.vsInsertFlagsContainNewText) Here I am not giving any details about macro creation, cutomozation etc . Behind the seen I wrote a macro for the same and that is being triggered with the key press. So, I came up with an small approach where we can generate a GUID by just pressing some shortcut key. Last few days of my development involved with lots of GUID generation where I found it’s taking time to generate so many guid’s. But whenever you need an unique static GUID you have to navigate to tool and copy the ID evertime. Visual Studio comes with a tool called guidgen.exe ( c:\program files (x86)\microsoft sdks\windows\v7.0a\bin\NETFX 4.0 Tools\guidgen.exe ) which is registered with visual studio as an external tool and invoked from Tools > Create GUID. Even during writing unit test we need to generate static GUID to validate data’s. This is even more frequent when we are working on a SharePoint solutions. One of the common tasks involved in the development is GUID’s generation. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |