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:
Open a TAB
Repeat the above
Too many tabs are opened, so it is confusing.
Close all tabs
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?
[Click to become a Python guru]