Home

Awesome

vscode-repper

This Visual Studio Code extension provides Ruby Regexp formatting via Repper. It will be used with files that have the “Ruby” syntax.

Installation

Press F1, type ext install then search for jaynetics.vscode-repper.

repper installation

Before using this plugin, you must ensure that repper is installed on your system:

gem install repper

Settings

You can configure vscode-repper in your workspace or user settings. You can either

a) Open VS Code settings menu, select "Extensions" and scroll down to "Repper"

b) Manually adjust your settings via your settings.json file:

{
  ...
  "repper.exe": "repper",  // can be an absolute path
  "repper.useBundler": false,
}

Attention: Restart Visual Studio Code after you have made changes to the settings.

Using RVM

If your setup instruments RVM to install Ruby version you might receive errors indicating Repper can't be found. Because repper might not be in your current PATH, you need to change the executable to the RVM-wrapped one:

"repper.exe": "/Users/You/.rvm/gems/ruby-2.3.6/wrappers/repper"

Using rbenv

If your setup instruments rbenv, you should point the executable to the Repper shim generated by rbenv. This way the extension will continue to work after you upgrade your Ruby:

"repper.exe": "/Users/You/.rbenv/shims/repper"

Develop

Testing

Credits

Based on vscode-rufo by Jonas Thiel.