Install the extension from the Jetbrains Marketplace or in Settings > Plugins in your Jetbrains IDE of choice.
Get your User ID (and optionally Team ID) from the Jetbrains extension page.
Open the Refraction extension settings under Tools > Refraction Settings and enter your IDs (see screenshot below).
Apply the changes and start using the extension.
Open a file in any supported Jetbrains editor such as PyCharm, AppCode, WebStorm, etc. A list of supported editors is maintained on the Marketplace page.
Select some code.
Open the command palette (
Option+Enteron Mac) or right click the selected code.
Select the command you want to run e.g. "Generate unit tests"
Refraction will generate the code and insert it into your file.