Hi Developers!
We’ve got some awesome new Script Editor features and quality of life improvements we want to tell you about! If you would like to use these features please go to File > Beta Features > Script Editor Beta Features and check the box!
Semantic Highlighting
We’re super excited to release Semantic Highlighting into Beta which is an extension of Syntax Highlighting. This update will make it easier to read your code by introducing more granular highlighting for new categories. The Color Presets have also been updated to reflect more detailed highlighting and they can be changed by going to Studio Settings > Studio > Script Editor Colors > Script Editor Color Preset. To turn on this Beta feature go to Beta Features > Script Editor Beta Features.
New Dark Themes
New Light Themes
We also wanted to share that our future plans also include:
- Adding High Contrast and Color Blind friendly Themes for accessibility
- Fine tuning a few Semantic categories
Temporary Tabs
Gone are the days where every time you open a Script it clutters the view and you spend hours searching for the Script you were initially working on. With this new Beta Feature, Scripts will automatically open in “Preview” mode by default which is indicated through the italics in the Script name. It requires double clicking or editing the Script to make it “Keep it open”. The goal of Temporary Tabs is to make it easier to navigate between Scripts in Studio by opening less Scripts that don’t clutter the view.
A temporary tab will open when you:
- Single click a Script from the Explorer, Output window, or any other widget
- Use the Quick Open (Cmd+P) or Filter Function (Option+F) to open a Script
- Hit a breakpoint during a debug session
A permanent tab will open when you:
- Double click a Script from the Explorer, Output window, or any other widget
- Double click on the Temporary Tab
- Right click on the Temporary Tab and select “Keep Open”
We also wanted to highlight some hotkeys that make it easier to interact with tabs:
- Closing a tab: Ctrl+W for Windows and Cmd+W for Mac
- Reopening previous tab: Ctrl+Shift+t for Windows and Cmd+Shift+t for Mac
- Cycling between tabs based on history: Ctrl+tab for Windows and Ctrl+Space for Mac
Our future plans for this feature include:
- Adding a hotkey to make a temporary tab permanent
- Enabling developers to “Pin” tabs which moves their position to the left most view so they are easily accessible at all times
Quality of Life Improvements
We’re excited to add some quality of life improvements that will make development faster in Studio:
-
You can delete the current line by using Ctrl+Shift+K for Windows and Cmd+Shift+K for Mac
-
If you’re typing in the Script Editor, Ctrl/Cmd+9 will go to the Command Bar, pressing Ctrl/Cmd+9 again will go back to where you were typing in the Script Editor
-
The overscroll feature allows you to scroll past the last line of your Script by default, if you would like to turn this feature off you can do so by unchecking Studio Settings → Studio → Script Editor → Scroll Past Last Line
-
Theme Presets now link all the colors in the Script Editor so any change you make for a specific theme will only be saved for that theme
-
You can now highlight the current Script in the Explorer by using Ctrl+Alt+K for Windows and Cmd+Option+K for Mac
We’re also working to add:
- Support to expand selection of a word/token in the Script Editor using Cmd+D
- Having the Quick Open (Cmd+P) supports 3D objects. Meaning any search for a Model or a Part will open the 3D view and focus on that Object (Need to confirm flag)
- Having the Quick Open support the “Go to Line” functionality by typing “:” or using the Ctrl/Cmd+G hotkey
All these awesome features are made possible by our awesome engineers: @swmaniac @yohooyohoo @HugoBLH @windy0724 @PaintedGardener @cruiser_forever
We would love to hear any questions and feedback down in the comments below!