Rush for. NET Programming

Source: Internet
Author: User

-Introduction Two Useful Tools
VS. net Programming auxiliary tools, such as cool, are not good enough, maybe I am ignorant, honestly I only use VBCommenter, but also in VB. net2003 is a bit entertaining, and the other most is the Macros (macro) made by others. It may be because VS2003 is too powerful to stand on a high level, and it is only admirable.
To do well, you must first sharpen your tools. A very accidental opportunity, accidentally found CodeRush, Refactor! Pro. If VS2003 is a tiger, CodeRush and Refactor! The addition of two Pro tools greatly improves programming efficiency.
The following article is just a tip of the iceberg.

1. coderush for. net
It can help you analyze the code structure more intuitively. Have you ever seen 16-layer IF nested statements? Any programmer with eyes will be dazzled, with it, complicated programs can also be seen at a glance.

Please note that there are colored lines vertically. If you cannot see the lines, contact your doctor.

Return, Exit, and other jump directions, click the arrow in the red box, it will give you some advice.

The two figures below are even more powerful.

There are also CodeTemplate and smart notification functions.
CodeTemplate, for example, the built-in Template, you enter "tf space" and automatically generate the following code:

Smart prompts on variables and functions: What should I do if the variable or function name is long during previous code writing?
I usually copy and paste it, and if it is global, use "me." To show it. If it is a local part of the function, it will be hard to do it.
Coderush:
The variable name abcdefghijklmn1233456778899 is long enough. When you reference it, you need to write it in one letter or one letter. I think it is not a world. Enter ABC and coderush to help you solve the problem.

After coderush is used, use the Shanghai TV series "open a window for you" to sing the following:
The tears of regret in the forgotten corner are full of eyes. Last night's love, current thinking; qiangu hate, pain heartbroken. Let's get out of the maze and look back. The bright spring light reflects the small window.

2. refactor! Pro
The refactoring tool vs2005 already has similar functions, but it is very good for vs2003.

It seems that I have referenced this book!

Examples
, To rename the variable function. All corresponding places that reference the variable or function are automatically replaced with new names, you do not need to use the tool that comes with vs2003 to find and replace it (you need to consider partial matching or full match, etc ).

Recommendation for constant refactoring, such

Refactor! We recommend that you use the refactoring tool Pro in combination to achieve better results.

The above two tools are good for children, and even the rotten code can be thoroughly analyzed.
Of course, it is not encouraging you to write bad code, but to look at it as a tool for detecting bad code, just like a car. Although it is a scooter tool, but you still need to run and exercise yourself at ordinary times. If you want a car to run for you, you will be eight feet tall, and of course the waist is also eight feet.
If coderush is used to show that there are too many vertical lines in the program code, such code 8 and 9 will not leave 10 is bad code, you have to pay attention to "exercise" at ordinary times.

Appendix: this tool is not a free product. Please use genuine products. Thank you!

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.