-
Notifications
You must be signed in to change notification settings - Fork 679
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sort Usings #788
Comments
For temporaty workaround you can use Uncrustify plugin with proper config option for using sorting. |
@akshita31 Can figure out if sorting usings is a public API of Roslyn? If it is, we could go ahead and add a command to do this. (I bet we could also add a command that removes the unused ones) |
@rchande : I don't believe we've exposed these as public APIs yet. |
+1 |
1 similar comment
+1 |
This is already implemented as part of formatting, see release notes here https://github.com/OmniSharp/omnisharp-roslyn/blob/master/CHANGELOG.md#13410---2020-01-27 it's not enabled by default so needs to be enabled with see also the blog post for more info https://www.strathweb.com/2020/02/hidden-features-of-omnisharp-and-c-extension-for-vs-code/#toc_4 |
I will close this based on the above comment ^ |
Environment data
dotnet --info
output:VS Code version:1.5.3
C# Extension version:1.4.1
Steps to reproduce
Create a file with lots of usings statement
Expected behavior
Intellisense to offer "Sort Usings"
Actual behavior
Nothing
The text was updated successfully, but these errors were encountered: