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

Quickly Sort Lines

Sort lines of code in your editor alphabetically.

To quickly sort lines alphabetically, select them in the editor and choose Edit | Sort Lines from the main menu. Alternatively, you can run this action using the Find Action command ⌘⇧A (macOS) / Ctrl+Shift+A (Windows/Linux).

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