Visual Studio tips-(31-40)

Source: Internet
Author: User

31,Use Ctrl + Shift + F9 to delete all set breakpoints

You can also choose from the following menu:

32,Create an object ID to track objects

To track an object during debugging, you can right-click it to create the target ID:

Then you will see {1 #} next to the object Value

It also appears in the invigilation window:

After that, when you view this object again, you can directly access it in the invigilation window by using the ID number of the created object:

If you do not need this ID, right-click in the window and choose delete Object ID:

33,Use SHIFT + F9 to quickly call up a quick monitoring window

The effect is as follows:

 

34,Use the HTML visualization window to view HTML

 

The effect is as follows:

 

At the same time, you may also notice that the text visible window and XML are Window options. Similarly, you can view XML text:

Of course, it is best to select an appropriate window to view the content, in order to achieve the best effect.

For example, if you use a text visual window to view XML files, the effect is as follows:

The special XML window is used:

The highlighted XML file is much better than the text file.

Note: The line feed option is supported when you use a text visualization window,

If you deselect this check box, the data is displayed on a row. You must use the scroll bar to view the complete information:

 

35,Monitoring exception information

You can add $ exception in the monitoring window to view the exception information during program execution. The effect is as follows:

 

36,Use Ctrl + \ and D to open the Code definition window.(For C #)

The effects are as follows:

  

Of course, you can also use the right-click function to select the definition to achieve the same purpose, but it will be opened on the new tab.

37,Use of Class View windows

Shortcut to open the Class View: Ctrl + Shift + c

You can use Ctrl + k and CTRL + V to quickly search for objects in the solution.

 

If you want to call a specific method, but you do not want to implement all the content at this time, you can drag and drop the method in the Class View to introduce it. The effect is as follows:

You can directly execute a static method in the Class View.

The procedure is as follows:

When I run the static method sayhello, I will get a prompt to confirm the running:

If you click OK, the running result of the following program is displayed:

 

38,Add an associated item to the Project

This is useful when you need to share a file with multiple projects, such as slice, documents, public tools, and programs.

Method: Right-click the project in the solution and choose add> existing project. You will notice a drop-down button next to the Add button, after you click it, you will find a "Add as Link" option, as shown below:

 

After you select the required items, you will see your link items under the current project.

Note: This link item must exist on your local machine. You cannot add it through HTTP or FTP.

39,The vs installation directory contains a set of built-in image libraries.

The specific location is in c: \ Program Files \ Microsoft Visual Studio 9.0 \ common7 \ vs2008imagelibrary

Next, if it is a compressed package, just decompress it. There are not many things.

They are common icons, and the chances of using the Web seem to be small, but winform is still good.

40,Use Ctrl +. to quickly introduce a namespace

  

I believe everyone (including myself) will often use a shortcut key: Shift + ALT + F10, but compared with Ctrl +. obviously, the operation is more complicated, so it is easier to use it.

Case closed!

Author: Rocky Xiang
Source: http://www.cnblogs.com/RockyMyx/
The copyright of this article is shared by the author and the blog Park. You are welcome to repost it, but please provide a connection to the original article clearly on the article page. Otherwise, you will be entitled to pursue legal liability.

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.