Installation
Install the extension from the VSCode Marketplace or with the terminal command
code --install-extension haydenbleasel.refraction
.Get your User ID (and optionally Team ID) from the VS Code extension page.
Open the VS Code extension settings and enter your User ID (see screenshot below).
Reload VSCode to apply the changes and start using the extension.
Usage
Open a file in VSCode.
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.