ue / alphabetical-sorter Goto Github PK
View Code? Open in Web Editor NEWVScode extension - For variable alphabetical re-order
Home Page: https://marketplace.visualstudio.com/items?itemName=ue.alphabetical-sorter
License: MIT License
VScode extension - For variable alphabetical re-order
Home Page: https://marketplace.visualstudio.com/items?itemName=ue.alphabetical-sorter
License: MIT License
In an angular project, imports typically start with '@' or a letter, with the former being core angular libraries that are typically more important than the rest. It would be great to be able to let the '@' imports rise to the top of the list then sorted alphabetically.
Currently, if you have a list which is ['a_b', 'a_b_c', 'a', 'b']
it will order it as ['a_b_c', 'a_b', 'a', 'b']
. My expectation would be ['a', 'a_b', 'a_b_c', 'b']
. Could this be changed/added as an option in settings?
I use VSCodium, an alternative FLOSS binary of VS Code with telemetry and some other parts stripped out. I'd like to request that the Alphabetical Sorter extension be added to the open-vsx.org marketplace in addition to the official Microsoft marketplace, because the legality of using the official marketplace on VS Code forks is questionable.
Instructions for doing so are available at https://github.com/eclipse/openvsx/wiki/Publishing-Extensions. Thank you for your consideration.
Can we configure which symbols are ordered first? For example:
psycopg2-binary==2.7.4
psycopg2==2.7.3.1
The current functionality puts psycopg2-binary
first, but I would prefer if psycopg2
was ordered first.
I also saw that this issue was closed: #3 was this added?
Perhaps this type of feature would only be useful if the file extension is .json or .js, but it would be nice if it could take nested JSON or JS object literals:
{
"workbench.iconTheme": "vscode-icons",
"zenMode.hideLineNumbers": false,
"emmet.includeLanguages": {
"javascript": "javascriptreact"
},
"beautify.options": {
"indent_with_tabs?": true,
"indent_size?": 1,
"end_with_newline?": true
},
"search.exclude": {
"**/public/fonts": true,
"**/public/js": true,
"**/public/themes": true,
"**/public/css": true
}
}
And sort it like this:
{
"beautify.options": {
"end_with_newline?": true
"indent_size?": 1,
"indent_with_tabs?": true,
},
"emmet.includeLanguages": {
"javascript": "javascriptreact"
},
"search.exclude": {
"**/public/css": true
"**/public/fonts": true,
"**/public/js": true,
"**/public/themes": true,
}
"workbench.iconTheme": "vscode-icons",
"zenMode.hideLineNumbers": false,
}
... and if the last item in a nested list doesn't have one and it's moved to another position in the order, add a comma at the end so that ti doesn't have to be manually fixed after the sort (errors in the format should be highlighted above)
instead of:
"**/public/css": true,
"**/public/fonts": true,
"**/public/js": true,
"**/public/themes": true
"end_with_newline?": true
"indent_size?": 1,
"indent_with_tabs?": true,
"javascript": "javascriptreact"
"beautify.options": {
"emmet.includeLanguages": {
"search.exclude": {
"workbench.iconTheme": "vscode-icons",
"zenMode.hideLineNumbers": false,
}
},
},
{
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.