Listen to the course C # intermediate:classes, Interfaces and OOP notes, continuous modification update ing

Source: Internet
Author: User

In the 7th section of the second chapter, I tried and gave my vistal Studio 2015 a resharper, feeling very useful, and now share a little bit of my experience.

First, to prevent ReSharper shortcut keys from failing, you can first reset all Visual Studio settings (Tools > Import and Export settings > Reset All settings ), then reset Resharper > Options > Keyboard & Menus and re-apply the Keyboard shortcut schemeand save it at the end.

When you click on a class name and enter Alt+enter, you can move the entire class to a new file! This eliminates the steps: Right-click the project name, add, add Class, and then copy and paste this string of steps!

When I want to add the following line of code, I only need to hit Cw+tab, but this shortcut may be the VS 2015 comes with.

Console.WriteLine ();

The Var in the following line of code is used to make the code not repeat too many class names.

var New Customer ();

F9 is the insertion breakpoint; F5 runs, Shift+f5 stops running!

Click Ctrl+tab to switch class files freely!

Quickly create a constructor in a class member and hit Ctor+tab straight out!

ReSharper will automatically add a header file to the new class you created!

In ReSharper, the comment line is ctrl+alt+/, and the comment line is Ctrl+shift+/;vs with the comment line is ctrl+k and CTRL + C;

VS, click Alt plus mouse to make column selection, if you want to add to multiple lines, delete or modify the same content, you can also click Alt and mouse down to move to the line you want to change, the operation of the multi-line.

ReSharper can change the field member variable in C # to Pink, but you have to choose the Resharper,manage options, then the Options,code inspection settings in the lower left corner, then the code on the right Identifiers Tick, save is OK, VS 2015 currently there is no color match for field member variables;

Tapping Try+tab can directly get the following code:

Try {}catch  (Exception) {                    throw;}

Listen to the course C # intermediate:classes, Interfaces and OOP notes, continuous modification update ing

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.