Script Editor - Code Formatting Improvements and New Features

Tab and Shift + Tab still work - it’s additional not instead of, to make it more like external editors. I far prefer Ctrl + [ and ]

7 Likes

Uh oh this will be annoying haha… I often speed write certain repetitive sections of code which obviously also utilizes a lot of copy pasting, and I end up hitting ctrl+z a TON. Hopefully this behaviour won’t stick around or I might end up turning format on paste off which will be unfortunate.

5 Likes

Cmd+Space is reserved for Spotlight Search on mac. Could you possibly change it to something else so it doesn’t conflict with the OS keyboard shortcuts?

EDIT: Cmd+Space is actually sunk by Spotlight Search, does not work for switching between scripts.

1 Like

Simply hit ctrl+z one more time to undo the paste as well.

2 Likes

I usually want my comments to follow indentation rules. Is there a setting for this I can turn on?

7 Likes

It would be cool to have game-level settings to change coding style so every scripter would use the same coding style. Now that there is an option to indent using spaces, there is a possibility of someone in a team changing that setting and messing up the indentation. At least I don’t want any space indentation in any of my code because spaces are evil.

btw a quick poll

  • Tabs
  • Spaces

0 voters

5 Likes

Shift+Tab and Tab are still work as usual! we just provide extra hot-key (ctrl+[/]) to give you another options.

3 Likes

Yeah I see it now, just that, the way it is worded it looks like the hotkey was replaced, but thank you and @BanTech for clarifying

1 Like

Yes! Please let Format button serve you!

4 Likes

This is truly amazing! Finally for once Roblox isn’t focused on the avatars.

2 Likes

What about the lag that occurs when you a lot of characters in the code editor while having show-whitespaces setting on?, will that be more optimized in the future?

1 Like

Will there be options to adjust how the formatter works in the future? It would be awesome to be able to enforce our own personal style guides.

5 Likes

Sorry for the mistake, we meant Ctrl+Space!

4 Likes

To everyone commenting spaces are evil: yes we know but that’s not what this thread is about.

3 Likes

Any news on when granular syntax highlighting is out? :eyes:

2 Likes

I’m mostly excited about the new copy and pasting, now I don’t have to freak out everytime I paste something with indents.

4 Likes

Yes. Thank you. I have been waiting for quite some time for this.

2 Likes

Oh my goodness! finally! Improper indentation always bothered me, and now I don’t have to worry about that!

1 Like

Are multi-line cursors a thing?

2 Likes

Will automatic un-indenting be coming soon? (Really tired right now and can’t think of proper terminology)

Example from VSCode:
https://gyazo.com/ae570f8eb63855011ce106db03b8908c

2 Likes