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.