ruby on rails vscode erb format code example
Example: ruby on rails vscode erb format
# Go to File->Preferences->Settings->Click ...
# in top right corner->Open settings.json
# Then add this piece of code to your settings.json
...
...
"ruby.rubocop.onSave": true,
"editor.formatOnSaveTimeout": 5000,
"editor.formatOnSave": true,
"files.associations": {
"*.erb": "erb"
},
...
...