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.
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.
It's pretty obvious that you will need Crystal to be installed. By default, Crystal executable is expected to be found as
Extension provides these commands:
Please, check your keybindings configuration to configure these commands.
You can configure the extension through the following settings:
Currently only file-by-file formatting is supported.