As a beginner on learning Coding in Studio… sometimes I like to compare 2 script versions.
I installed a plugin called Script Compare… but it falls short… does not align.
What I am looking for is something that compares like VSC… which will create blank lines on either script… so that the identical script lines do line up.
My question is… how can I achieve that in studio itself ?
What plugin are others using to achieve this … or if Studio itself can do this ?
I would love to get to the stage where I can Sync Studio, my PC file, VSC and GitHub all together… but being new to this… I have to start with comparisons first & filing 2nd… and then eventually Syncing.
Sorry to hear this! We’d love to find out more so we can help fix.
Could you give us an example of some text that is failing to sync correctly? Also, please confirm what encoding your script editor is using? In VS Code, this is shown in the bottom right corner of the window (in this case UTF-8):
(1A) Will it be possible to sync the scripts from a folder that contains non-scripts?
We’re leaning towards supporting this right now, but it does come with some tradeoffs!
When syncing a Folder, if we ‘ignore’ non-Script Instances inside it, it complicates the version control story a little. When we support starting sync from disk state, will this cause confusion for creators who expect these Instances to be synced too?
Even if we do ‘ignore’ non Script Instances, there are some cases that would be really hard for us to support without extra data (like the script parented to a model case you describe). There’s an argument to be made that we should only support hierarchies in the DM that are 100% file system compatible, but for some users that may be overly restrictive.
More thought needed - welcome opinions on how you think this should work
(1B) Will we sync non-script Instances to your disk too?
We are actively thinking about other standard file formats that we think Studio should provide great support for syncing (for example images).
That being said, we have no current plans to provide general sync for DataModel. I talk about why in more detail in my post above. We think tools like Rojo are best equipped to deliver this sort of feature, and we should focus on better supporting those tools rather than coming up with our own complex rules + opinions for this.
Our intention is to rely on convention. Rojo + the Luau spec provide broad conventions for a how a given hierarchy of Luau files maps to Instances, and we can safely adopt these without introducing new opinions.
Looking at your example:
* Folder
* ScriptA
* ScriptB
* ScriptC
Would leverage the init.luau behavior in the Luau spec:
The second example, how we support this really depends on the answer to (1A). It might be we opt not to support this at all and require you to Sync ScriptA and ScriptB separately. More thought needed.
* Folder (to sync)
* ScriptA
* Model
* ScriptB
Please let us know your thoughts, we’d love feedback on how you’d expect this to work.
Developing a built-in version control system in Studio will be a significant effort, partly due to the different workflows and needs of scripters and builders.
To begin, we will focus on enhancing content versioning and introducing detailed place version history starting 2025. With that, you will be able to add place version notes, rename versions, filter versions, and search for specific content changes.
Will this impact the version number that’s returned from endpoints such as https://develop.roblox.com/v1/assets/{place_id}/versions? Or is it purely a semantic name that’s assigned to a version number?
Open the file in VSC (i don’t know if this issue also occurs on other editors) and make sure the program is set to auto-save files on a time interval (mine is set to once every second)
Edit the file with multiple cursors (10-20 simultaneously)
This errors should occur randomly when trying to write something to the file. Thing is, i remember editing a couple of lines without reopening the editing script tab in studio, and when i reopened the file again this morning i discovered that the edits I’ve done were not saved.
Apparently if i keep the script editor tab opened in studio this issue doesn’t seem to happen.
We think that the issue is due to your “End of Line Sequence” setting being set to CRLF. Currently, we only support LF. Changing this setting should fix the issue for you. Please let us know if the issue persists.
I’d really like to start using VSCode for scripting so that I can have my code editor in a persistent window on my second monitor, but am really missing some Roblox-specific things like the automatic do-end block creation when you hit Enter. Any external tool pros here who have some tips to make it more like the Studio editor, or at least how I can get started on doing it myself?
Yes… having the Studio script editor open on the 2nd monitor is nice … until you do a test and it resets back into Studio on monitor #1 - Annoying indeed.