Tips for using Visual Studio 4-where am I (display the current document in Solution Explorer)

Source: Internet
Author: User

Today's article is not long. I hope you will not be kicked out of the homepage by the Administrator :)

"Show me your Visual Studio ."

"Here, what are you looking ?"

"I am familiar with the project code, but every time I use go to definition several times, I don't know which project to go to. You also know that our project has more than 20 projects. The currently opened code document is not displayed in the Solution Explorer of Visual Studio. It is estimated that it is a problem with the video card and does not support highlighting ."

("Video card ")

This is a conversation between a colleague and me two days ago. Today I found that this is called track active item in Solution Explorer and can be set. Tools-> options open the Options dialog box and find projects and solutions-> General. This option is disabled by default in vs2008.

This setting is especially useful when you are familiar with the code stage. However, if you are familiar with the project, you 'd better close it. For example, a Web Service Project I am working on will basically always select the website (host) project. If the underlying code is modified, you only need to build this project, you can test and debug the web service. Because F6 is the compilation of the entire solution, it is slow; while SHIFT + F6 only compiles this project, and does not update the dynamic library in WebService.

Suggestions of ttrr:

Define a macro, similar to the following content, and then define a shortcut that you like.

Imports envdte
Imports envdte80
Imports envdte90

Public module utilities
Public sub trackprojectitem ()

DTE. executecommand ("view. trackactivityinsolutionexplorer ","")
DTE. executecommand ("view. solutionexplorer ")
DTE. executecommand ("view. trackactivityinsolutionexplorer ","")

End sub
End Module

 

Thanks to Zain naboulsi for his article. His blog is Visual Studio tips and tricks. You can also check it out. I may be interested in translating an article every day in the future.

Related Article

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.