简体   繁体   中英

Visual Studio C# - method auto complete order

Visual Studio (C#) helps you when you are overriding a method, but it writes the code in a different pattern than our standard, meaning:

Auto generated code:

public override void foo() {

}

Our standard:

override public void foo() {

}

I did not find any configuration in the tools/options menu. Is there any work-around for this?

You can have a work around. After you have completed your day's work, just search and replace public override with override public in entire solution and you are done.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM