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

Crystal Formatter

The Dead Ferryman

|
1,789 installs
| (1) | Free
Crystal lang format tool VSCode integration
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

crystal format for VS Code

Crystal lang has very useful tool named 'format'. Since there were no VSCode extensions that provide such an integration, so here the one.

Features

Formatting Crystal done easy! Refer to commands section to learn more.

This extension allows configure formatting options that will be passed to 'crystal tool format'. To check out these options, call 'crystal tool format --help' in your terminal.

Requirements

It's pretty obvious that you will need Crystal to be installed. By default, Crystal executable is expected to be found as /usr/bin/crystal. If you have crystal installed in some other location, you can specify it in settings.

Commands

Extension provides these commands:

  • cryFmt.askFormat: show formatting dialog (you can configure formatting options for single run)
  • cryFmt.doFormat: Format immediately using default options (refer 'Extension settings')

Please, check your keybindings configuration to configure these commands.

Extension Settings

You can configure the extension through the following settings:

  • cryFmt.crystalExecutable: path to Crystal executable
  • cryFmt.defaultParams: default options used for immediate formatting

Known Issues

Currently only file-by-file formatting is supported.

Release Notes

1.0.2

Initial release

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