Convert spaces into tabs (or vice versa) indentation hotkey

VS Code has some kind of shortcut somewhere to convert spaces and tab indentation so the formatting is consistent. If the textport editor within TD could handle this I think it’d be really nice.

Something about the new chopexecutes and other scripts with all their comments feels like pressing enter doesn’t create a new line already indented, but rather things seem space indented now. Maybe I’m wrong, this was just how it felt to me without much thought. I’ve always used tabs with old TD. But chatgpt loves to spit out space indented by default.

A native option to stick to a preference would be great. Be it a hotkey or right click and “convert all indentations to tabs/spaces” box or something.

Pretty please!

2 Likes

Related: Shift+Tab to de-indent single lines (works with multi-line selections)

Hi @ButchBangher and @function.store

thank you for the suggestion, have logged this as an RFE for consideration. This would help with copying code from various online sources. stackoverflow as well is very much space based I think.

cheers
Markus