To do a good job, you must first sharpen the tool.

Source: Internet
Author: User

 

Section 1 Address:

To do a good job, you must first sharpen the tool.

Http://www.cnblogs.com/qqflying/archive/2008/11/19/1336094.html

Directly go to the second directory:

How to use bookmarks?
How can I use an instant window to display variables or execution methods?
How to quickly find files in the project on the hard disk?
How to quickly adjust a document or segmentCodeFormat?
How can I add files to a project quickly?
How to force smart prompts?
How to force call parameter information?
How to jump to a specified row?

How do I use the forward and backward positioning shortcuts?
How can I quickly switch between unused pages?
How can I quickly hide or display the current code segment?
How can I modify attributes of multiple controls at the same time?
How to record and play temporary Macros?

 

9. How can I use bookmarks to quickly find my own files?

If you are developing a medium or large project, if your solution contains many projects, and if you have many pages, it is difficult to quickly find a desired page, find directories at different layers? It's too slow. What's more, let's ask you to find a piece of code on a page ?!

The bookmarks in vs can solve this problem well. First, place the cursor in the Code where the bookmarks are to be marked, and then click the insert bookmarks button in vs to complete the bookmarking setting operation. You can also use the shortcut keys Ctrl + B and CTRL + T to set or cancel bookmarks.

See the figure below:

After the bookmarks are set, double-click the bookmarks you set in the bookmarks list to directly jump to the desired code segment. Remind me that you can rename the name of the bookmarks by yourself. It is very convenient.

10. How to Use the instant window for debuggingProgram?

The purpose of this real-time window is needless to say. Everyone may know, but many people cannot find it when they accidentally close the window and try to use it.

Think about it. Since it is a real-time window that must be useful during debugging, how can we open it? Debug -- window -- instant window, or shortcut key: Ctrl + D, I

11. How to quickly find files in the project on the hard disk?

If you are using Vs and want to copy a file in the project, do not go deep into a directory in the hard disk and open the file in, right-click the option to open the folder, as shown in the following figure:

12. How can I quickly adjust the format of a document or code segment?

Now everyone writes code and copies it. But sometimes the copied code is not formatted as correct and neatly formatted as it is. How can this problem be solved? Adjust manually one line at a time? No!

Let vs do this boring job: select Edit> advanced> set the document format or edit> advanced> set the format of the selected code. With it, you are no longer afraid of poor code formatting.

13. How to quickly add files to the project?

Open Vs and paste the file to the folder you want to place.

14. How to force smart prompts?

Without vs, we can only remind you that many people will not write code. However, smart reminders do not allow us to use them as we like. After that, you cannot move the mouse any more, sometimes we have to delete some of the original code and click ". "To call smart notifications.

In fact, VS has a shortcut key that allows us to see what we want and when we want to see smart reminders.

Place the cursor where you want to call the smart reminder, and enter Ctrl + J. You can see that the familiar smart reminder is coming again. See the figure below:

15. How to forcibly call parameter information?

The parameter information of a method is also very important, but it sometimes causes the same confusion as 14. How can we "see what we want?

Remember this shortcut key: Ctrl + shif + space. Place the cursor over the parameter name, and enter Ctrl + shif + space to see what is going on:

16. How to jump to a specified row?

You can use either of the following methods to quickly locate a line in the document: 1. CTRL + G 2. Click the line number in the status bar, for example:

17. How can I use the forward and backward positioning shortcuts?

I believe that everyone in Vs will like to use "to definition", but how can we quickly return to definition after definition conversion? The shortcut key below will save you the time for "turning back:

CTRL + _. If you want to go back to definition, just enter Ctrl + shif +. Switch back and forth.

If you are too tired to look at it like this, you can use a more concise method: Open the view-Code definition window, and then point your mouse to a method on the page, see what is displayed in the Code definition window:

18. How can I quickly switch between unused pages?

You can switch the shortcut keys of different windows in window: Alt + TAB, so there are also: Ctrl + tab in vs to see the effect:


19. How to quickly hide or display the current code segment?

CTRL + M, m
20. How can I modify attributes of multiple controls at the same time?

Select multiple controls and right-click the attributes. The common attributes of these controls will appear. After modification, all the controls will change.
21. How to record and play a temporary macro?

If you need to repeatedly repeat a series of keyboard operations in Vs, you can consider letting vs write code on its own. Use the macro function in vs to record a series of keyboard operations that need to be repeated, and then directly execute the macro to allow vs to write its own code.

Recording: Tools-macros-record temporary macros, CTRL + shif + R
Play: tool-macro-run temporary macro, CTRL + shif + P
Save: tool-macro-Save the temporary macro. You can rename the macro.

Note: OK. I have finished writing this series. Are you more familiar with Visual Studio? "To do things well, you must first sharpen the tool." Let's pick up the Visual Studio tool to create a better tomorrow! That's all.

OriginalArticle, Reprinted, please indicate the source.

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.