Quickly rename the namespace of the. NET program in batches (2) To tianyaxiang

Source: Internet
Author: User

Part 1ArticleThere are some restrictions on using vs to batch rename. I don't understand why this is done. If I want to completely modify the namespace, I will use it with resharper, there are also two methods that correspond to.

Method 1:

1. Open the project and open a class in the project to rename the space. Right-click the cursor in The namespace, for example: (you will find that the original "refactoring" item is missing because resharper is installed)

2. At this time, you will find that, for example, (this is different from displaying a part of the Change During vs reconstruction. In this case, the entire namespace can be modified, which is not met by the vs tool)

3. After modification, it will be OK after next. If there are many classes, it will take a process. After that, it will be OK. The namespaces of all classes in this category will be renamed, and the corresponding using will be changed.

The second method is similar to the previous one.

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.