Visual Studio practical tips, Visual Studio

Source: Internet
Author: User

Visual Studio practical tips, Visual Studio

Click"Programmers", Select" pin public number"

Critical moment, first served!


There is a joke about Microsoft Office about its many features:

When you think you have discovered a new Office feature, it has existed for many years.


This article describes some tips that are useful but ignored in Visual Studio.

Use CTRL +; to search for solution Resource Manager

You can click the Solution Explorer text box (or press CTRL +;) to search for all nodes, whether hidden or visible.

Even if it is deeply folded, you can find it. The search results are retained until you clear the search box.

Use CTRL + Q to quickly open

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

In general, we use menus to find a function, such as opening tools ...... Option ...... .

Press Ctrl + Q and enter the keyword. For example, to change the font size:

Another example is to compare files? Do you know that VS has this function?

You can also find an NuGet package faster than NuGet Dialog:

If you use this function for a few days, you will get used to it. Thank you in the future.

Display overview on the scroll bar

When I like to show some features to others, they are surprised that "this feature is actually available ".
Emoji. Find "map mode" in quick start, and then open it, you can see this effect.

The scroll bar displays a thumbnail when you hover your mouse over it to navigate your file.

TAB Management

Most people use the TAB like this:

  1. Open a TAB

  2. Repeat the above

  3. Too many tabs are opened, so it is confusing.

  4. Close all tabs

  5. Return to 0

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

You can fix frequently-used tabs. When you close the tab, You do not select "close all tabs" but "close tabs other than fixed tabs"

In addition, if you want to view a file, do not always double-click it in resource manager to open a new tab. A preview can be generated on the right side of a single machine. In this way, the tab won't be messed up.

Use CTRL + to locate

This is undoubtedly the most prominent feature in this article. Why use the mouse to locate the problem? Press Ctrl + and enter the file, member variable, or function. You can select from the pop-up menu and locate it.

If you know the name of the item you are looking for, you will not be able to use the resource manager at all. use Ctrl + to make it faster.

Use the keyboard to move the code

Visual Studio is not Emacs or Vim (unless you want to change it to VSVim, but it also has some advanced features that people generally do not know.

You can use alt + up/down keys to move the code, which is rarely used in reality. You can also use the Shift + Select key to Select the code and move it.

You can also use block selection: press Alt and drag to edit several lines at the same time.

Maybe you already know these features, or you have learned something. I think more importantly, you need to realize that there are many features waiting for you to discover. What tips do you have?

  • By SCOTT
  • Translation: Lai xintao
  • Original article: Visual Studio's most useful (and underused) tips
  • Programmers organize and publish big coffee. for reprinting, contact the author for authorization.

[Click to become a Python guru]

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.