Visual Studio uses tips

Source: Internet
Author: User
There is a joke about Microsoft Office, saying that it features too many:

It's been around for years when you think you've discovered a new feature of office.

This article describes some of the little tricks that are useful and overlooked in visual Studio (free download).

Use CTRL +; Search Solution Explorer

You can click on the text box in Solution Explorer (or use the shortcut key "CTRL +;") to search all nodes-whether hidden or visible.

Even if the folds are deep, you can search for them. The search results will remain until you clear the search box.

Quick Open With Ctrl+q

If there is any function that everyone should use, but actually no one to use, it should be opened quickly.

In general, we use the menu to find a function, such as opening the tool ... Options...... such as

Just press ctrl+q and enter the keyword. For example, to change the font size:

Again, if you want to compare files? Do you know that VS has this feature?

You can also find a NuGet package faster than NuGet dialog:

Just use this feature for a few days and you'll get used to it. You will thank yourself in the future.

Show overview in scroll bar

I like to show people some features, they reveal "unexpectedly still have this function" surprise expression. Find "map Mode" in the quick open and open it, and you'll see the effect.

Your scroll bar will display a thumbnail when you hover over it to navigate your files.

TAB Management

Most people use the Tab tab page:

    1. Open a tab


    2. Repeat above


    3. Open tab Too much, confusion is not clear


    4. Close all Tabs


    5. Back to 0

You can use "fixed tab" and "tab Preview".

You can pin the usual tab, and then turn off all tabs instead of "close tab" except for fixed.

In addition, if you want to view a file, do not always double-click in the Explorer to open a file, which opens a new tab. With a single machine, a preview can be generated on the right. So you don't mess up the tab.

Use CTRL + Positioning

This is undoubtedly one of the most prominent features in this article. Why use the mouse to locate it? Press CTRL +, enter a file, a member variable, or a function, you can select it from the popup menu and navigate to that place.

If you know the name of the thing you're looking for, it doesn't have to be a resource manager, use CTRL +, faster.

Using the keyboard to move code

Visual Studio is not Emacs or vim (unless you want to turn it into a vsvim, but there are some advanced features that people don't generally know about.)

You can use ALT + up and down keys to move the code, which is rarely used in practice. You can also select the code and move it directly with the Shift+select key.

You can also use block selection: Hold down ALT and drag so that you can edit in several lines at the same time.

Maybe you already know these traits, and maybe you've learned something. I think it's more important that you realize there are a lot of features waiting for you to find out. What are some of the little tricks you don't know about?

Original: Visual Studio ' s most useful (and underused) tips

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.