dotnet / dotnet/vscode-csharp

Add a command or function - Remove and Sort Usings

Open
#5,320 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
3.1k
Forks
737
Avg merge
18h 40m
Merged PRs (30d)
31

Description

## Is your feature request related to a problem? Please describe.

## Describe the solution you would like
- Add one item, "Remove and Sort Usings" in the right menu;
- Add some configs to set the sort and group rule
- A config flag to decide to add a new line when grouping Usings

## Applicable Scenarios
- Remove unused using statement
- Sort and group using statement
- Format code

## Describe alternatives you've considered
- Use Visual Studio to sort and group the using statement.

## Additional context
- Raw (Before updated):
![image](https://user-images.githubusercontent.com/7411596/181418328-1804638d-afa6-4355-99bf-3480042dd461.png)

- Updated:
![image](https://user-images.githubusercontent.com/7411596/181419152-c591c627-6942-4de7-b412-847f259ee1db.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.