facebook pixelReal-Time Static Code Analysis and Code Snippets for VS Code
BACK TO LIST

Get Codiga for VS Code

Coding Assistant and Code Analysis right in your favorite IDE

Content

  • Quick Start
  • Static Code Analysis
  • Code Snippets

The Codiga VS Code Extension lets you integrate the Coding Assistant and Code Analysis engine directly in VS Code. No need to install multiple tools or wait the pull requests: all analysis results come directly in your development environment.

Quick Start

The Codiga plugin is available on the VS Code marketplace. You can find it directly within VS Code, in the Extensions section as shown below.

vscode marketplace

Static Code Analysis

Get Codiga Static Code Analysis directly in your preferred IDE. Follow this guide to configure in VS Code:

Step 1

Explore the Codiga Rules to use for your project on the Hub

vs code static code analysis step 1

Step 2

Create a codiga.yml with the rulesets you selected from the hub in step 1. If you want to use default rulesets, select your programming language below and copy the content into a codiga.ymlfile at the root of your repository.

1rulesets:

2- python-security

3- python-best-practices

4- python-code-style

Step 3

Check your code in your IDE in real time on every keystroke.

vs code static code analysis step 3

Coding Assistant

Just type CMD ⌘ + SHIFT ⇧ + C [For Mac] & CTRL + ALT + C [FOR WINDOWS] enter what you are looking for: Codiga finds appropriate reusable code patterns ready to import in your IDE. Use CMD ⌘ + SHIFT ⇧ + S [For Mac] & CTRL + ALT + S [FOR WINDOWS] to find appropriate shortcuts directly onto your IDE.

vscode marketplace

Creating and sharing a code snippet has never been easier: select the text, right click and select Create Codiga Snippet.

vscode marketplace

Connect your Codiga Account

If you want to use the snippets, cookbooks or other parameters from your Codiga account, you need to connect your API token. To create an API Token, go to the API token section of the Codiga platform and add your API Token in VS Code, as shown below.

vscode configuration

You can check that the API connection is working using the command "Codiga: Test API connection" (⇧⌘P).

vscode test api

Links

  • Code Assistant
  • Code Analysis
  • Source Code
  • Report a bug
InstallGet support on Slack

We NEVER store or use the code to train or improve our system.

Having trouble installing?

Don’t hesitate to contact us anytime! We are here for you at support@codiga.io or join our Slack channel.

Contact Sales

Looking for a custom quote, a demo; or want to talk about a special project? Contact us at Sales, or drop us a line at hello@codiga.io