I would like to use the automatic shaping function with Shift+Option+F in VSCode.
"The ruby file formatter is not installed."
I have tried various candidates from the "Install Formatter" button in the lower right corner.
I couldn't find anything that worked.
Also, we have searched VScode ruby formatter and investigated it.
If anyone knows VSCode, please give me some advice.
Isn't the format Gem installed?
I think there are many types of formatters, but I use rufo.
For example, if you want to format the ruby code using rufo, install the gem as follows:
$gem install rufo
You can then install extensions for the VSCode rufo for formatting.
You can also use rubocop to format.
© 2024 OneMinuteCode. All rights reserved.