Use shortcut keys to boost C # development efficiency

Source: Internet
Author: User

Good tools can help us improve our development efficiency, we can use tools to do things as far as possible, so that our development as far as possible automation is the key factor to improve development efficiency.

Many people have used resharper, but also by the ReSharper super many shortcut keys to be impressed, this article I summed up the actual use of several ReSharper shortcut keys.

1. Generate Method Stub: Ctrl+k+m (Forget if this shortcut is vs or resharper)

When we need a function call but this function is not implemented, at this point you can write the function name, press CTRL+K+M after the function will automatically help us build, at this time we do the work is to implement the function of the internal function.

2. Abstracting the code out of the method: Ctrl+r+m

For very long code that needs to be abstracted to improve readability, you can use Ctrl+r+m and then choose the appropriate function arguments.

3. Modify method Name: Ctrl+r+r

No longer worrying about naming the method when it is created, because we can modify the method name globally.

4. Run unit test: Ctrl+t+r

If you are using TDD to develop, then this shortcut key is the most convenient, the shortcut can be used in conjunction with NUnit, speed up our running unit test.

5. Toggle Open Different documents: Ctrl+tab

Don't use the mouse to point the dots between multiple documents.

6. Popup Method parameter description: crtl+P

Similar to the ctrl+shift+space in VS

7.alt+f7

To see where a class or member is referenced in a solution, this shortcut is especially useful when parsing source code, such as when you want to find out which class library a data structure is called from, and then analyze the applicable scenario for that data structure.

.......

Note: Although I wrote the above 7 keys far more than this, try to use shortcut points instead of mouse operation, the first looks cool, the second greatly improve the efficiency of our development code. Before using the mouse operation, it is best to know if there is no shortcut key to replace.

The above shortcut keys to remove the code odor, refactoring code has a lot of help, when you have been accustomed to them, found that has been put down.

With regard to the choice of shortcut keys, I often mix resharper and vs shortcut keys, such as go to definition, format code operation I am used to with vs self-brought, with which to see personal habits.

And one of the most important, don't forget to press ctrl+s at any time.

Use shortcut keys to boost C # development efficiency

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.