Installation
Install the extension from Package Control by clicking Sublime Text > Settings > Package Control (or typing
command-shift-p
on MacOS) and typing "Install Package". Then, type Refraction and choose the relevant package.Get your User ID (and optionally Team ID) from the Sublime extension page.
Open the Sublime extension settings and enter your User ID and optionally Team ID (see screenshot below).
You can type
command-shift-p
on MacOS and search for "Refraction Settings"; orYou can click Sublime Text > Settings > Package Settings > Refraction > Settings
Reload Sublime to apply the changes and start using the extension.
Usage
Open a file in Sublime Text.
Select some code.
Open the command palette (
Ctrl+Shift+P
on Windows/Linux,Cmd+Shift+P
on Mac) and typeRefraction
.Select the command you want to run e.g. "Generate unit tests"
Refraction will generate the code and insert it into your file.