-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Description
What type of request is this?
New tool idea
Clear and concise description of the feature you are proposing
I often need to convert tabs to spaces, and I'd like to avoid searching online for them. VSCode's current implementation only converts indentation (the firsts tabs) not variable tabs. Replacing \t for spaces messes up with variable width.
Would really like this! Specially having a configurable number of spaces. (2-4-8)
It's crazy to think almost every website does this wrong! Or don't have enough spaces. Or only leading tabs.
Is their example of this tool in the wild?
Working examples:
Notepad++ does this well: https://stackoverflow.com/questions/455037/convert-tabs-to-spaces-in-notepad
takumii.tabspace vscode extension does it really well, too
Wrong examples:
This one is just a replace tool. That's wrong! https://pinetools.com/convert-tabs-spaces
Same problem: https://tabstospaces.com/
same problem: https://onlinestringtools.com/convert-tabs-to-spaces
VSCode replaces only the leading tabs, first tabs. Not the rest.
not converting all tabs, too: https://tidy.js.org/tabs-to-spaces/#/result
same, only leading: https://text.uticraft.com/online/text/convert-tabs-to-spaces
Additional context
I literally cannot find any website that does this, only notepad++ and that vscode extension.
This would be really useful, since I constantly have to do this with my SQL queries, where I use mostly tabs but have to convert to spaces for deployment.
Thanks!
Validations
- Check the feature is not already implemented in the project.
- Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
- Check that the feature can be implemented in a client side only app (IT-Tools is client side only, no server).