Today I found this software good · Official Website: http://www.devprojects.net/
Go in and download autocode 2008 for Visual Studio 2008. After the installation is successful, you will see that it has been enabled in vs's "tool"-"" external program manager ".
Open the tool-> Option-> environment-> keyboard, and assign the shortcut keys "Global" and "Text Editor" to autocode2008.execute to Ctrl + enter.
The following is a dynamic diagram on the official website.
Let me talk about some quick usage of C #.
(1) directly create a class and its attributes include constructors.
Format: <attribute 1 type> <attribute 1 Name> .... <Attribute N type> <attribute n Name> <Class Name> class
Press Ctrl + enter.
Shuai Ba · complete so much code in an instant ··
(2) rewrite tostring ()
Format, press Ctrl + enter in a class, and then enter tostr
Press Ctrl + enter.
Shuai Ba · through the above figures, we should have basically understood how to use them. Below we will introduce some
(3) create a constructor, enter C in a class, and press Ctrl + enter
(4) create a private member, <Class Name> <member name> F, and press Ctrl + enter
(5) create a method, <type> <Method Name> m, and press Ctrl + enter
(6) create a private method, <type> <Method Name> MP, and press Ctrl + enter
(7) create a static method, <type> <Method Name> MS, and then press Ctrl + enter
(8) create a private method, <type> <Method Name> MSP, and press Ctrl + enter
(9) only create attributes without creating corresponding members and only get, enter <type> <member name> PM in the class, and press Ctrl + enter
(10) create a get-only property and its members, <type> <member name> p g, and press Ctrl + enter
(11) Create attributes and members with both get and set, <type> <member name> P, and press Ctrl + enter
(12) instantly write console. writeline ();, <content to be output> CW, then press Ctrl + enter
(13) Try catch. Enter TC and press Ctrl + enter.
(14) Try catch final shortcut, enter TCF directly, and press Ctrl + enter
(15) For the if shortcut, enter if directly, and press Ctrl + enter (in fact, the one that comes with vs is also good. directly enter it and press the tab key twice)
(16) If else shortcut, directly enter IFE and press Ctrl + enter
Next, we will introduce the powerful custom template functions ·
Use the AX command to define, <Template Name (any)> <command> ax
For example, if I want to define input HW,
Helloworld HW ax, then Ctrl + enter
Then a file with the autox suffix will be opened.
<? XML version = "1.0"?>
<Commands xmlns = "http://schemas.devprojects.net/AutoCode/v3.0">
<Command name = "helloworld" priority = "50">
<Commandbehavior>
<CommandLine shortcut = "HW"/>
<Activedocument extensions = "*"/>
</Commandbehavior>
<Commandinfo>
<Languagecategory> common </languagecategory>
<Category> (my commands) </Category>
<Usage> HW </usage>
<Description> no description supplied. </description>
<Author> mE </author>
<Helpurl> </Commandinfo>
<Commandcode Language = "CSHARP">
<Codes>
<Code id = "code1">
<! [CDATA []>
</Code>
</Codes>
<Selection codeelement = "code1" codepoint = "endofelement">
<Selecttext> </selecttext>
</Selection>
</Commandcode>
</Command>
</Commands>
Generate the following code: <! [CDATA []>
Insert the expected result in the middle. For example, if you want to input HW and press Ctrl + enter to display helloworld, you can insert it in the middle.
Example: <! [CDATA [helloworld]>, As long as helloworld is used, directly <! [CDATA []> replace it with helloworld. The purpose of writing it in is to ignore special symbols. If you have any special symbols, you 'd better write them in it.
Here we will only introduce simple custom methods. I will introduce them in detail later ~
If you have any questions, please reply ~