Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>C#_BroomNew to Visual Studio Code? Get it now.
C#_Broom

C#_Broom

Bachi Mjavanadze

|
2 installs
| (0) | Free
Remove unnecessary usings and format the active C# file from the status bar or a shortcut, no matter where the cursor is. Add-on for C# Dev Tools.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

C# Broom

Add-on for C# Dev Tools. It does not replace it and does not work without it. It adds the broom button Visual Studio IDE has and VS Code lacks: remove unnecessary usings and format the active file with one click, from anywhere in the file.

Why

C# Dev Tools already offers Remove unnecessary usings, but only through the lightbulb: you have to scroll to the top of the file and put the cursor on an unused using before Ctrl+..

Usage

  • Click the broom in the status bar, or
  • Press Ctrl+Alt+U, or
  • Run C# Broom: Remove Unnecessary Usings and Format from the Command Palette

Cursor position and selection are untouched. Nothing happens when the file has no unnecessary usings.

Requirements

  • C# Dev Tools, with its language server running
  • VS Code 1.90 or later

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft