Skip to content

Sourcery in VS Code

In VS Code, Sourcery can:

  • Explain the code you’re working with
  • Generate tests and docstrings on demand for code in your project
  • Answer questions and write new code for you
  • Review your uncommitted code or the code on a specific branch
  • instantly suggest improvements as you're writing code
  • automatically fix your code to ensure both more than 160 Pythonic best practices and conventions unique to your codebase as well as suggestions for JavaScript and TypeScript
  • show code quality metrics to all your functions

Coding Assistant in VS Code

Installing Sourcery

  1. Open the Sourcery extension in VS Code and click the install button


  1. Go to the VS Code Preferences menu and select Extensions
  2. Search for Sourcery and click Install