VSCode support for the syntax_tree gem. Available for download in the VSCode marketplace.
After installing the syntax_tree gem and the VSCode extension, add the following to your VSCode settings.json
to format Ruby on save.
"[ruby]": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "ruby-syntax-tree.vscode-syntax-tree"
},
You can find additional config options by searching for "syntax tree" in your VSCode settings.
Bug reports and pull requests are welcome on GitHub at https://github.com/ruby-syntax-tree/vscode-syntax-tree.
The gem is available as open source under the terms of the MIT License.