Using Tab to indent code

Every time I type code on the forum I have to use spaces to indent code. I realise coding convention usually dictates you should use 4 spaces or similar for indentation, but tab makes typing quick code much easier for more rapid dialogue on the forum. Most of the time I tend to type code in an outside software like studio and then paste in, which can be fairly tedious. I know this is probably a Mac issue, but I think the code typing experience on the forum could be improved anyway. It would be nice if auto-indentation was a feature, for example - which could depend on the code-type you’ve used (e.g “```lua” would use lua auto-indentation).

I couldn’t find any previous posts about it, but I’d be surprised if there aren’t any.

18 Likes

Thank you for your suggestion!

4 Likes

Yes!
Especially when copy/pasting a script to the forum, then editing it.

1 Like

I agree, this is really annoying. I often type code and I need to type 3+ spaces to indent code. This becomes harder on mobile.

1 Like

2 years later… where is this update. Would be really nice to have.

1 Like

yeah i agree its SUPER annoying.

Thanks for bumping. This doesn’t have any priority currently to be implemented as this conflicts with default browser behavior and might impact accessibility.

There would be some significant research/effort involved with making the code editor on-forum more intuitive that we currently don’t think is outweighed by the benefit of the change. Most people are currently copy-pasting in code from other places instead of typing it on the forum itself as you might also want to check that it runs properly before sharing.

We’ll keep an eye if this gathers more support in the future.

1 Like

I support should happen 100%. It would definitely help typing script on the Forum

if not Tab then other keybinds could potentially get introduced maybe?