I want to use Ruby's automatic shaping in VScode, but it says, "Formatter is not installed."

Asked 2 years ago, Updated 2 years ago, 96 views

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.

ruby vscode

2022-09-30 21:45

1 Answers

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.


2022-09-30 21:45

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.