Using Directives Sorted in Wrong Order

后端 未结 1 2016
野性不改
野性不改 2020-12-24 04:53

I\'m using the Power Commands extension with Visual Studio 2012. I have the option checked to remove and sort usings on save. The problem is that the System.Xxx directives a

相关标签:
1条回答
  • 2020-12-24 05:20

    Goto the "Quick Launch" (Ctrl+Q) and type "using" and press Enter.

    Then change the following setting:

    Using Sorting option

    It's an annoying default setting, I have no idea why Microsoft chose that, it goes against all previous standards that I've ever seen.

    EDIT: Thanks to Oskar we have a reason:

    The reason for the change in default behavior is due to the fact that Windows App Store applications prefer to have 'Windows.' at the top of the file rather than 'System.'

    0 讨论(0)
提交回复
热议问题