This is one of the things I enjoyed about VSCode, as it has helped me immensely, that way I don’t need to copy and paste text to put it in the right place.
There are a couple more things that would be awesome to see such as pressing (Ctrl+Alt+ Up/Down arrow) would clone the line or text you have selected in the appropriate direction (up/down)
You know, I think all of our scripting needs would be met if Roblox just let us use external software for the IDE instead of having to get plugins to do it.
Are there eventual plans to add more hotkeys to the editor (like ones to delete or clone lines, perhaps), or should I file a feature request for those?
Also, what are the odds of us getting a toggle for using spaces/tab characters when tab is pressed? I prefer to use spaces instead of tabs for indenting (some places make tabs absurdly long, which isn’t great for copy/pasting code snippets) and it would be nice to have that be an option in the script editor.
That’s negation; the error means you’re trying to do something like -(function() end).
All completely rolled out. We may explore beta approach in future releases, but in this particular case, most of the release is actually behind-the-scenes infrastructure that just makes things faster. The user visible features are all additive, and thoroughly (and automatedly) tested in advance of this release. There may be some corner cases we missed – and we REALLY want to hear about these! Enhancement suggestions would be amazing too (already tracking quite a few, thanks!).
We are really excited to land this, as it opens the door for us to begin landing changes that really move the needle on what it means to be a script developer in Studio.
Thank you a lot. So many times I had to copy and paste some code throughout scripts and have to fix the intent of the code block.
This can be a useful feature. I cannot think of a use right at this moment, but I bet this will be useful in the future.
Something that I would love to see being added is a comment shortcut like in VS Code. You can press Ctrl + / in order to single comment lines, or Ctrl + Shift + / in order to make a comment block. This would be very useful.
Another thing that I would love to see which is probably not going to happen is multi-line editing. You can put your “cursor” (the little line that indicates where you are on a text document) in multiple positions and whatever you do will affect all of those lines.
Other than my suggestions, I appreciate this update, especially these ones:
it seems like commenting code and pressing enter after it does what is shown in the image
it pushes the commented end forward, alongside the – that marks it as a comment
Duplicating line request is here. Deleting line request is here. Toggle for spaces vs tabs is here.
My best guess is that it’s unary minus, meaning minus (-) with one operator. It’s a bit of a dumb name to expose in error messages, but it’s the internal name. You could file a feature request to change it if you want.
As @kisty1 said that shortcut already exists in Studio. You can actually customize it to be Ctrl+/ by going to Customize Shortcuts... in the Advanced menu of Studio:
From there just search Comment and set it to Ctrl+/.
I am very happy about this update! One thing I would love though is if the whitespace setting was split into three, allowing more control over where it is visible. I personally don’t want to see whitespace between keywords. Great update overall.