Hey Developers,
Happy Friday! We’re excited to announce two major improvements to the current Script Editor Autocomplete feature: a full UX Overhaul and Documentation Code Samples!
Back in January, we released Luau-Powered Autocomplete & Language Features, which brought intelligent suggestions and documentation to the Script Editor. Since then, we’ve been listening to your feedback and refining the feature to best serve the community.
We’re thrilled about the results, and we think you will be too.
New Improvements
Code Samples
This is a feature we’ve been working on for quite some time, and after extensive collaboration with the Documentation team, we are proud to announce that Code Samples are now embedded inside 1000+ Autocomplete documentation entries!
Code Samples are displayed within the documentation window and can be hidden or displayed at will. An on-hover copy button in the lower right corner of the window allows for easy insertion of Samples into the Script Editor.
UX Overhaul
We worked closely with our designers on improving the Autocomplete and Documentation UX based on feedback from the community, and we think the results speak for themselves.
Before:
After:
Besides a general refinement of the features’ look and feel, we also made some specific enhancements:
Widget Draggability
- The Autocomplete suggestion list, documentation widget, and the Signature Help widget can now be resized by dragging on the edges of the respective windows. Dragging a widget sets its new max size, which persists across sessions.
Type Info
- Autocompletion type info has been moved from the suggestion list to the documentation widget, providing for greater readability and reduced visual noise.
Looking Forward
Now that we have a framework for displaying Code Samples in Autocomplete documentation, we’ve begun the task of increasing the number and quality of the samples we provide.
Over the next months, we’ll be working to identify the APIs that are most used by developers, so that we can prioritize adding Code Samples where they’re needed most. Meanwhile, we’ll refine the Code Samples we already provide, so that they can offer context on Roblox API calls as succinctly and cleanly as possible.
Big thanks to the following who contributed to making Code Samples and the UX overhaul possible: @yohooyohoo, @infomancer, @code4xp, @cozecant, @iriszh and @windy0724
Happy scripting!