- Smart Sort Lines
- Sorts lines of code with a tiny bit of intelligence
- 54 Installs
-
This extension is allowed to:
- Launch Subprocesses
Readme
Smart Sort Lines sorts lines of code with a little bit of intelligence.
If all but the last line of text end with a comma, then after sorting, all but the last line of text will still end with a comma.
If the first line of text is a left bracket and the last line of text is a right bracket, they will not be sorted.
It's particularly useful when sorting a list. For example, this text:
[
cat,
ant,
BAT
]
gets sorted to:
[
ant,
BAT,
cat
]
Usage
To run Smart Sort Lines:
- Select the Editor → Smart Sort Lines menu item; or
- Open the command palette and type
Smart Sort Lines
Contributing
Contributions are welcome. See the outer project's README.
License, Copyright, Attributions
Copyright 2022 Erik Hanson. See LICENSE. The extension icon is a modified version of an icon from Font Awesome which is licensed under CC BY 4.0.
Changelog
Version 1.0.2
Fix config that might have prevented the extension from activating.
Version 1.0.1
Updated icons and readme.
Version 1.0
Initial release.