This is Visual Studio Code extension for formatting ruby files based on rufo gem.
- Windows/Linux: Ctrl + Shift + I
- Mac: Cmd + Shift + I
It required rufo
gem to be installed and availble in path.
gem install rufo
-
It supports only the whole file formatting. Formatting a selected block of code is not supported yet.
-
As the modification of file happens outside the editer using the gem, cannot use undo operation. This is a known issue with vs code and hopefully gets fixed soon.