VSCode Extension

A Codecov VS Code extention which shows you coverage and helps configure new repositories.

Codecov's VSCode extension:

  • Shows basic code coverage decorations based on coverage uploaded to Codecov.
  • Helps setup and manage your Codecov YAML configuration through autocomplete and validation.

To install the new extension, you can search directly within VSCode under the extensions tab or can go directly to the visual studio marketplace here.

Coverage Decorations

After installing the extension, you will be prompted to input a Codecov API key. You can generate this key in the Codecov App under Account settings -> Access. After inputting a valid API key, Codecov should start showing line coverage decorations.

Coverage decorations example

Customization Options

You can find some settings for the Coverage decorations feature in the extension's settings (Settings -> Extensions -> Codecov):

  • Select an alternative Git provider. By default, the extension will use GitHub, but you can alternatively select GitLab, BitBucket, or any of their self-hosted/enterprise variants.
  • Set custom decoration colors.
  • Connect to your self-hosted Codecov instance.

YAML Helper

To use the YAML autocomplete, documentation, and validation features, you simply need to open a codecov.yml file after installing the extension. To validate your whole YAML, press the Codecov umbrella button in the top right of your window.

Having problems?

If you run into issues with any of the extension's features, please don't hesitate to get in touch by submitting an issue. We will do our best to get back to you quickly!