vscode-solargraph icon indicating copy to clipboard operation
vscode-solargraph copied to clipboard

Rubocop format selection

Open kevinjalbert opened this issue 5 years ago • 1 comments

I have formatting working on the whole document, but I'm wondering if its possible to format just a selection?

If I try I end up getting this:

There is no selection formatter for 'ruby'-files installed.

Not sure if this exists already somehow, or if this is out of the scope of this repository?

kevinjalbert avatar Mar 08 '19 15:03 kevinjalbert

The LSP specification covers it with a feature called rangeFormatting, but Solargraph doesn't support it yet. I'll need to determine whether the RuboCop formatting tools can handle it.

castwide avatar Mar 08 '19 15:03 castwide