All Collections
Refraction for VS Code
Refraction for VS Code

How to install, configure and use Refraction's VS Code extension.

Sara M avatar
Written by Sara M
Updated over a week ago


  1. Install the extension from the VSCode Marketplace or with the terminal command code --install-extension haydenbleasel.refraction.

  2. Get your User ID (and optionally Team ID) from the VS Code extension page.

  3. Open the VS Code extension settings and enter your User ID (see screenshot below).

  4. Reload VSCode to apply the changes and start using the extension.



  1. Open a file in VSCode.

  2. Select some code.

  3. Open the command palette (Ctrl+Shift+P on Windows/Linux, Cmd+Shift+P on Mac) and type Refraction.

  4. Select the command you want to run e.g. "Generate unit tests"

  5. Refraction will generate the code and insert it into your file.

Did this answer your question?