Sort selected text from Visual Studio context menu

前端 未结 6 1667
忘掉有多难
忘掉有多难 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条回答
  •  执念已碎
    2021-01-03 20:01

    This comes up at the top of searches still so I'll add this latest solution. If you are running a current VS Code (and why wouldn't you?) you can use the built-in sorter by hitting ctrl-shift-p (Mac is cmd-shift-p) and type "sort" in the subsequent search box. There are many options.

提交回复
热议问题