A few days ago learned the beef Brisket-press release system, which mentioned a number of coding skills, summed up and share with you, sometimes because you do not know this small point can enhance your high efficiency!
1, press the TAB key continuously, the corresponding code snippet will be added automatically (for example: if judgment, for loop)
2. Ctrl+k&ctrl+d (sort the code snippet)
3, not written to complete where, especially convenient!
4, #region + name (you can put some code blocks together)
Content Segment
#endregion
Find Location: Edit-intellisense (I)-Insert Code Snippet
Shortcut keys: Ctrl+k & ctrl+x appears: Insert code snippet, select the appropriate language, and then select #region
5. Encapsulate some code as a drag tool: Open the right-hand toolbox-Select the code snippet you want to encapsulate to the Toolbox bar-Modify the name
6. Modify the class template (so that it adds the template comment) Copy the itemtemplates from-common7-ide-vwdexpress in the installation folder to the following: document-visual Studio 2012-templates-itemtemplates (and then open the modification on it)
7, in C # in the IF Judgment statement: the judgment condition will be fixed to the variable, so that if the symbol error generated when the solution will be incorrect, for example: if ("Qwe" =action) Build solution will error, because less write a =; if (action= "qwe") build solution will not error, run the program will error.
8. How to make the scroll bar fixed in C # interface:
using (AJAX) technology
Add maintainscrollpositiononpostback= "true" in the title section
9. The Gridlines property of the C # GridView control is changed to none; all border spaces will disappear
10. Word wrapping in the interface: Tools-Options-text editor-All Languages-wrap (display visual word wrap identifier)
In the future our efficiency is to ascend from this little bit of small things, important is not the way, but there is a desire to improve the efficiency of the heart.
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Improve efficiency-skills in programming