Disambiguate Script Windows

As a Roblox developer it is currently too hard to differentiate between different script windows when they have the same name.
Screenshot_20
It would be nice to have a way to easily tell them apart, perhaps via their full name.

10 Likes

Full name on hover would be nice

14 Likes

Theoretically a plugin script could check for all objects of ClassName script and if their name is not unique adds a number to their name (or similar identifier). Not an official solution (and questionable if there are a lot of scripts), but perhaps an idea if it bothers you otherwise.

This breaks in the case of module scripts since you’ll need to rename all references too.

1 Like

You are speaking of ModuleScripts trying to index scripts by name? I am not sure how you mean it otherwise since ModuleScripts should be unique to begin with.

Unrelated but please

Save us from the dreaded N/A

2 Likes

It’d be nice if they had little colors underneath their text. After a few sessions you’ll figure out what’s what without having to move your mouse (hover I’d also a great idea btw)

1 Like

They don’t have to be. require(game.ReplicatedStorage.Teleport) is different from require(game.ServerStorage.Teleport). You might run into non-unique games if you edit Roblox’s PlayerScripts, which might have the same name as some of your existing code. You can really run into it any time you use someone else’s work.

I personally have all of the ModuleScripts I write have unique names and use a require-by-string system. Doesn’t mean that everyone does that though.

Would it not still be beneficial to name the client-accessible module different from the server one, perhaps incorporating their intended use in it? It feels a lot like bad practice to me to have very ambigious names all over the place, but that is subjective perhaps.

I think it would be beneficial to name them differently, yes:

It is arguably bad practice to have lots of scripts with the same name. I agree on that. All of my ModuleScripts are named differently, including ones that are only used on the client or server. I only meant to make it clear that such a name collision can occur.


There are legitimate cases where two scripts have the same names:

  • Working with code from other programmers
  • Working with code that shares similar organizational format to be used by some system. I’ve seen this outside of Roblox – package.json, index.js, main.js, etc. This is a legitimate case for this feature, and all of the editors I’ve used with such files support distinguishing by a longer name.
3 Likes

Funny how easy(probably) it’d be to pull something like that off too. Then again I’m not one of the client engineers so I am just guessing.