Format Document/Selection has no effect

Reproduction Steps

1. Create a new Team Create place with default settings.
2. Create a script which isn’t formatted correctly (E.g. no newlines).
3. In the Script menu, use the format document or format selection items.

Expected Behavior

The script should be formatted.

Actual Behavior

The script is not changed at all.

Issue Area: Studio
Issue Type: Other
Impact: Low
Frequency: Constantly

Hey, did this issue get tracked? It still seems to be a problem, and it’s super easy to reproduce. The format selection/format document buttons just genuinely have no effect.

Thanks for the report! We’ll follow up when we have an update for you.

2 Likes

Hi @Hexcede, thank you for filing this. Can you please paste in a screenshot of your Settings for Script Editor? We need to know what you have enabled / disabled to reproduce this.

Thank you!

Upon further review, this is as designed. If you describe the use case for this we can potentially add it to the planned features if enough people ask for it. Given that we have a Script Editor API this is also potentially something that can be implemented as a plugin.

Hi, this is pretty clearly not working as designed. The feature does not change the document in any way. I am not sure that I understand. Are you saying that this feature is intended to just… Do absolutely nothing?

I have been unable to find any context where this feature works at all. Additionally, format on paste still works just fine. The manual formatting options in the script menu do not do anything. The formatting options in the context menu do not do anything. The only formatting that works as intended is format on paste.

See this official Roblox announcement post where this feature is described.

How is this working as intended?

Hi, what I mean here is that the formatting feature was not designed to deal with formatting single line scripts.

I will mark this as a feature request.

To understand the problem better, can you explain the use case? How do you end up needing to format single line scripts?

Thank you!