Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.
First time visiting? Here are some places to start:- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- Be respectful, on topic and if you see a problem, Flag it.
If you would like to contact our Community Manager personally, feel free to send a private message or an email.
External Editor
brettmcgin
Member Posts: 2 ✭
Hello,
Is it possible to open FeatureScripts in an external editor (vs code, sublime, etc)?
Is it possible to open FeatureScripts in an external editor (vs code, sublime, etc)?
1
Comments
Ideally, we want to make the experience editing FeatureScript inside a Feature Studio great. Feature Studios have some nice features that an offline editor would be missing, like autocomplete of all your imported libraries, versioning with your onshape documents, and automatic rebuilding of Part Studios when you commit.
If your favorite editor has specific features that you'd like Onshape Feature Studios to also support, please submit an improvement request!
I would love to check out the python code, much appreciated.
Is there a way to make a feature request for something like this?
@alnis is my personal account. @alnis_ptc is my official PTC account.
Your browser is compatible with Onshape
Browser
WebGL and extensions
Renderer
Performance check
WebSockets
Geographical data
@alnis is my personal account. @alnis_ptc is my official PTC account.
We're aware of the specific performance problem you mention (typing in large Feature Studios) and its fix is pending in a future release of Onshape. I'll update this post when it ships.
As a community, if we start pushing an external editor, we lose out on a lot of what makes FeatureScript great. FeatureScript is easy to pick up because there is nothing to install or configure. Its just there, inside of Onshape, ready to go. Its a very low barrier to entry. The built in editor also means its portable and benefits from the interactiveness of Onshape. I can load it up on any device and have it there. When I work with other developers and designers, we can jump into the same FeatureStudio and work through the code at the same time. Try that in an external editor. Consulting and code reviews are like 5x faster not having to deal with screen share.
Also, this thread is old and a bunch of the requests have been implemented. Part studios automatically rebuild, imported libraries show up in auto complete. The speed issues are pretty much gone, I've copy pasted 20,000+ lines of code without any issues.
Multistudio search/replace, refactoring, code folding, custom shortcuts, bookmarking, AND A BACK BUTTON (yes, if you ctrl-click a function, you cant go back) would be great improvements, and I think in time they'll get added. Create a thread in the improvements category and let people vote on it.
Custom FeatureScript and Onshape Integrated Applications
https://cad.onshape.com/glassworks/explorer/#/FeatureStudio/getFeatureStudioContents
and
https://cad.onshape.com/glassworks/explorer/#/FeatureStudio/updateFeatureStudioContents
I read in a thread from years past that the featurescript IDE is based on a generic web IDE (ace), so the features are likely what came out of the box. Actually, code folding is supported: on windows highlight a section and do alt-L. Wish I knew that earlier...
Custom FeatureScript and Onshape Integrated Applications
https://forum.onshape.com/discussion/12424/feature-studio-keyboard-shortcuts