Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>Line SortNew to Visual Studio Code? Get it now.
Line Sort

Line Sort

Lafitte Mehdy

|
1 install
| (0) | Free
Get your lines straight, all neat and alphabetically in one quick hit
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Line Sort

CI

Get your lines straight. Alphabetically, of course.

Usage

Select your lines, then hit it:

  • Ctrl+Alt+S (or Cmd+Alt+S on Mac)
  • Right-click → "Alphabetize Selected Lines"
  • Command Palette → "Alphabetize Selected Lines"

One quick hit and your lines are perfectly organized.

Details

Sorts in ASCII order (case-sensitive):

Before:          After:
zebra            !exclaim
Apple            @mention
banana           123
@mention         Apple
123              Banana
!exclaim         banana
Banana           zebra

Special characters, numbers, uppercase, lowercase: All your lines end up clean and organized. Pure sorting, no cutting corners.

Requirements

VS Code 1.105.0+

Release Notes

0.0.1

Initial release. Straightens out your lines fast.


MIT License

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