The JetBrains Guide is shutting down on March 30, 2026. more...

Clean Up Messy Imports With Optimize Imports

Quickly remove any unused imports and more.

With the Optimize Imports action ⌃⌥O (macOS) / Ctrl+Alt+O (Windows/Linux), you can quickly remove any unused imports, merge imports from the same module, and optionally sort the import statements.

Related Resources

New live templates for main methods
New live templates for main methods
Create an instance main method using a live template.
Live templates for simple IO
Live templates for simple IO
Add simple IO methods using live templates.
Adding Azure Functions to the Project
Adding Azure Functions to the Project
Implement HTTP, Timer, and Queue triggers