<commit_before># vscode-rufo

VS Code extension for formatting ruby files using the [rufo](https://github.com/ruby-formatter/rufo) gem.

## Features

- Supports formatting on save
- Or with a command

## Requirements

Depends on the [rufo](https://github.com/ruby-formatter/rufo) gem being installed and available in your PATH.

```bash
  $ gem install rufo
```

## Extension Settings

This extension contributes the following settings:

* `rufo.formatOnSave`: enable/disable formatting the entire Ruby document on save. (default: **false**)
<commit_msg>explain usage a bit better<commit_after># vscode-rufo

VS Code extension for formatting ruby files using the [rufo](https://github.com/ruby-formatter/rufo) gem.

## Features

- Supports formatting on save
- Or with a command

## Requirements

Depends on the [rufo](https://github.com/ruby-formatter/rufo) gem being installed and available in your PATH.

```bash
  $ gem install rufo
```

## Usage

If you want to format a file one off, you will find `Format ruby file` in your command palette.

If you want to have `rufo` format your files every time you save, add this setting your User / Workspace settings:

* `rufo.formatOnSave`: enable/disable formatting the entire Ruby document on save. (default: **false**)

{'fraction_non_alphanumeric': 0.09929078014184398, 'fraction_numerical': 0.0, 'mean_word_length': 4.404255319148936, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2781661', 'n_tokens_mistral': 394, 'n_tokens_neox': 363, 'n_words': 152}