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
Installing Sourcery¶
- Open the Sourcery extension in VS Code and click the install button
OR
- Go to the VS Code Preferences menu and select Extensions
- Search for Sourcery and click Install