Improve efficiency-skills in programming

Source: Internet
Author: User
Tags word wrap

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.