codecadwallader / codemaid

CodeMaid is an open source Visual Studio extension to cleanup and simplify our C#, C++, F#, VB, PHP, PowerShell, JSON, XAML, XML, ASP, HTML, CSS, LESS, SCSS, JavaScript and TypeScript coding.
http://www.codemaid.net
GNU Lesser General Public License v3.0
1.92k stars 361 forks source link

Feature Request: Primarily Order Alphabetically #575

Open TonyValenti opened 6 years ago

TonyValenti commented 6 years ago

Environment

Visual Studio version: Visual studio 2017 (15.7.4)

Description

Often times I write code like this:

        private int Updates_CheckEveryInMinutes_Min = 1; // 1 Minute
        private int Updates_CheckEveryInMinutes_Max = 60 * 24 * 7; // 1 week
        public int Updates_CheckEveryInMinutes_Safe {
            get {
                var ret = Updates_CheckEveryInMinutes;
                if(ret < Updates_CheckEveryInMinutes_Min) {
                    ret = Updates_CheckEveryInMinutes_Min;
                } else if (ret > Updates_CheckEveryInMinutes_Max) {
                    ret = Updates_CheckEveryInMinutes_Max;
                }

                return ret;
            }
        }

as well as:

public void DoSomething(string Parameter){
  DoSomethingInternal(Parameter, 1);
}

private void DoSomethingInternal(string Parameter, int Number){

}

It would be really nice if there were a setting in CodeMail that would order things in this way.

codecadwallader commented 6 years ago

Thanks for making the request, but I'm not sure I fully understand it. It sounds like you want to be able to sort alphabetically ignoring access modifiers, is that correct? In the example above Updates_CheckEveryInMinutes_Min would end up after Updates_CheckEveryInMinutes_Max