Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>OpenSCAD FormatterNew to Visual Studio Code? Get it now.
OpenSCAD Formatter

OpenSCAD Formatter

Julian G

|
2,880 installs
| (1) | Free
Simple formatter for OpenSCAD files using clang-format.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

OpenSCAD Formatter

Visual Studio Marketplace Version

Also available at Open VSX

A simple formatter for OpenSCAD files, that utilizes clang-format.

Important: you will have to install clang-format yourself, it is not shipped with this extension.

Note: this extension does not provide syntax highlighting or other language features for OpenSCAD files directly, instead it pulls Antyos.openscad as a dependency.

Extension Settings

  • openscad-formatter.clang-format.executable: The path to the clang-format executable.
  • openscad-formatter.clang-format.style: The style parameters for clang-format*

*please refer to the documentation of clang-format for the various options.

Known issues

  • Partial formatting („Format Selection“ in the command palette) is not implemented.
  • vscode's format settings for tab size or space replacement are currenlty ignored.

Release Notes

1.2.1

Comment out exlcuded use and include statements before passing them to clang-format, see #3.

1.2.0

Rework the way we avoid breaking use and include statements during formatting. This fixes the workaround for use statements (see [discussion #1](https://github.com/JulianGmp/vscode-openscad-formatter/issues/1#issuecomment-1133959813)).

1.1.1

Fix an issue where use statements would lead to bad formatting (see [discussion #1](https://github.com/JulianGmp/vscode-openscad-formatter/issues/1#issuecomment-1133753753)).

1.1.0

Fix #1: OpenSCAD files with includes are now formatted normally.

1.0.1

Update README

1.0.0

Initial release

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft