Ability to replace with tabs in the Find/Replace tool

As a Roblox developer, it is currently too hard to quickly format text after pasting it into Roblox’s script editor. Sometimes, when you paste code into the script editor, it uses spaces instead of tabs and you want to quickly convert them into tabs.

However, when you press Ctrl+F and try to replace the spaces with tabs, it won’t let you enter a tab in the “replace” field. Instead, you have to manually go through each time there are four spaces and replace it with a tab without using the script editor’s Find tool.

I’m suggesting the ability to type tabs in the replace field so it’s easier to do this. This feature is already a thing in more popular editors like Sublime Text:

This is more of small quality of life addition than anything, and it’ll make scripting in Roblox’s script editor much easier.


This is a good feature.

That said, there’s a workaround for now. You could write a tiny plugin that just does:

Script.Source = string.gsub(Script.Source,"    ","\t")

This only works if the script is under 200,000 characters, but that is enough if you just put the snippet into a separate script and then copy and paste the correctly formatted version out of it after the plugin runs.


sorry for being late to mark it as a solution, lol
i was waiting to see if anyone else was going to share their opinion on this.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.