Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>godot-formatNew to Visual Studio Code? Get it now.
godot-format

godot-format

DoHe

|
1 install
| (0) | Free
A formatter for Godot/GDScript using GDQuest's gdscript formatter
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

godot-format

A godot/gdscript formatter extension for VSCode. It uses GDScript-formatter by GDQuest.

Features

This is a standard VSCode formatter and as such supports typical formatter capabilities like the format command or autoformatting on save.

Requirements

This extension does not ship with the gdscript formatter binary itself. You can retrieve the one for your platform here. You can either add it to your system's PATH for autodiscovery or specify the path to the executable in the extension settings (see below). If the binary is added to PATH, make sure to remove the platform and architecture from the filename, e.g. rename gdscript-formatter-windows-x86_64.exe to gdscript-formatter.exe or gdscript-formatter-linux-aarch64 to gdscript-formatter.

Extension Settings

This extension supports the following settings:

  • godotFormatter.enable: Enable/disable formatting with this extension
  • godotFormatter.gdscriptFormatterPath: The path to the gdscript formatter executable. Leave this empty if it's in your system's PATH.
  • godotFormatter.useSpaces: Whether to use spaces. If disabled will use tabs.
  • godotFormatter.indentSize: How many spaces to use for indentation. This is only used if useSpaces is enabled
  • godotFormatter.reorderCode: Whether to allow reordering code blocks, like exported variables vs constants etc
  • godotFormatter.safe: Whether to enable safe mode. Safe mode tries to preserve existing syntax and structure where possible and otherwise does not format the file. If this enabled, reorderCode is ignored. Slightly less performant.

Known Issues

None so far

Release Notes

See changelog

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