You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently realized this wonderful extension does not include a formatter. After looking around I found there aren't really any good ones out there and this would great to add. I'll see if I can do it in my spare time, but maybe in the meantime someone else knows of one or a workaround? (Maybe using a formatter for another similar language?)
The text was updated successfully, but these errors were encountered:
I am not aware of any OpenSCAD formatters, but I'd love to have one in the extension!
While I am sure there are some formatters that could be used as a starting point, like perhaps one used by a C-like language or maybe even JavaScript, I don't think it could be used in its raw form. OpenSCAD has different syntax for things like the module keyword, as well as several unique language characteristics.
For example, how "should" the following code be formatted?
I'm sure there are plenty of other things I'm not thinking of too. That is not to say I am not on board with this idea, I would absolutely love to have a formatted, I just think it's worth talking about the implementation or formatting guidelines to be implemented.
I recently realized this wonderful extension does not include a formatter. After looking around I found there aren't really any good ones out there and this would great to add. I'll see if I can do it in my spare time, but maybe in the meantime someone else knows of one or a workaround? (Maybe using a formatter for another similar language?)
The text was updated successfully, but these errors were encountered: