Cause
When I was in Guangzhou last year, I always had almost perfect requirements on the code specifications of the brothers in the group. Here is a simple example:
1. Each method must be annotated with detailed descriptions of method parameters.
2. The method, event, and function must have a uniform foldable code block.
3. Each attribute and enumeration must have separate comments and descriptions.
For programmers, this is basically a nightmare. It is enough to specify the important parameters. It is not necessary to write them all (I often comfort myself ), however, I found that it was really tricky to be lazy. Although we can use custom text tools for drag-and-drop production, it was always hard work.
As a result, this plug-in is available in the last two days. After using this plug-in, who will say your code is not beautiful? You are in a hurry with me. I am in charge of the face.
Main functions
To put it bluntly, the plug-in mainly has the following small functions (the bricks and horses are thrown away, and the building is urgently needed recently, haha)
Automatic Identification of namespace, class, struct, Enum, property, methods, functions, and events (collectively called functions) are recognized as functions, but the method name remains unchanged.
Automatically identifies Nested classes and structures.
Automatically identifies the parameters in the function and automatically generates XML comments for the parameters. However, there is a bug where the function return value cannot be recognized.
The # region # endregion folding code block is automatically added for class, struct, Enum, property, and function.
Automatically identifies the property and function types to generate comments. For example, the comments of A property start with "Get or set.
A comparison chart
Automatic Identification of heavy load methods
Usage
Download the DLL and the boot file of this plug-in, decompress the package, and then convert the formatx. DLL and formatx. add addin to the C: \ Users \ [username] \ Documents \ Visual Studio 2008 \ addins folder (recommended ), especially when the document and setting folder cannot be found in Windows 7 (which is also a security consideration), add the plug-in
In the folder, the corresponding folder is generally: C: \ Users \ [username] \ Documents \ Visual Studio 2008 \ addins, which may vary with different Visual Studio versions, but it should be consistent in general. Alternatively, add external connections to Visual Studio (not recommended)
The external program and security are explained in msdn. We do not recommend that you add external plug-in links. For details, refer to the following:
Http://technet.microsoft.com/zh-cn/library/1326zbk3%28v=vs.90%29
After the preceding settings are complete, open Visual Studio and a formatx button is added to the main menu.
Open tools> external Program Manager
You can see that the plug-in has been added to Visual Studio. Open your project now.
Download: formatx.rar