Sort selected text from Visual Studio context menu

前端 未结 6 1687
忘掉有多难
忘掉有多难 2021-01-03 19:24

Currently VS has a very useful feature: sort usings (C#).

I want the same functionality for any random text, for example - XML nodes in config files.

How com

6条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-03 20:08

    You can copy the code into Sublime Text, select the section of code and hit F9 (or go to Edit > Sort Lines). You can then copy it back into Visual Studio.

提交回复
热议问题