First, go to a mind map with the resharper shortcut key that has been drawn for more than an hour (the picture is already small. You can right-click it and save it or right-click it to open it in a new window to view the source image ):
I. Preface
Tools are the key to improving work efficiency. Resharper is a powerful tool plug-in under Visual Studio. It supports browsing, navigation, refactoring, Automatic completion, smart prompts, and other functions.
This article mainly introduces the navigation function of resharper 7, Visual Studio 2012.
Here is a navigation shortcut:
The most common navigation shortcut is Alt + '(this symbol is under the ESC key ). To define F12, I believe everyone is familiar with it.
2. CTRL + Shift + F11
This shortcut key is used to jump to the symbol type definition (note that it is not a declaration). For example, move the cursor to the products symbol below (products is the set of products ):
Press Ctrl + Shift + F11 to jump to the definition of the product type of products:
You may say that you can simply select the product in line 28th and press F12. However, if you do not know the products type in advance, this shortcut key is very useful.
Iii. CTRL + F12
Jump to the implementation. The effect is the same as pressing CTRL and clicking the left mouse button. In some cases, the effect is the same as pressing F12 directly. For example, place the cursor on the product below:
Press Ctrl + F12 to adjust the product implementation:
Iv. Shift + ALT + F12
Go to the place where you want to use it, as shown below:
5. Powerful bookmarks
Resharper 7 provides a powerful bookmarks function. The shortcut keys for bookmarks are as follows:
You can place the cursor in a line of code, and then press Ctrl + Shift + number key. For example, if I press Ctrl + Shift + 1, a bookmark is added to the Code, pay attention to the number 1 above the bookmarks and bookmarks on the left of the Code:
Then press Ctrl + Shift + 1 to remove the bookmarks for this row.
CTRL + 'is used to view all bookmarks:
CTRL + number key is used to quickly jump to a bookmarks. I think if you follow a long process in a solution, you can use this function by bookmarking it.
6. recently edited
We often need to jump to the nearest editing area, especially in a large solution that contains hundreds of thousands of files. This requirement is even more urgent (you can also use bookmarks, but not suitable ).
The shortcut keys for editing recently are as follows:
The CTRL + Shift + backspace combination key can quickly locate the most recent editing area.
CTRL +: The key combination test is not successful. I don't know why.
CTRL + Shift +, used to view all recent edits:
CTRL + ALT + F7 view related files. For example, place the cursor on the index action below and press CTRL + ALT + F7 to display the index. cshtml file associated with it:
I hope this will help you improve your work efficiency.