The Wayback Machine - http://web.archive.org/web/20221101213552/https://github.com/codiga/vscode-plugin/
Skip to content

codiga/vscode-plugin

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Slack Twitter Visual Studio Marketplace Download Rating Code Grade Code Quality

Codiga is a Smart Code Snippets manager. Create, share, search and use Smart Code Snippets from your IDE.

Codiga: Static Code Analysis & Code Snippets on Steroids

Static Code Analysis

The static code analysis works for Python in Beta.

With Codiga, you can:

  • Use Code Analysis rules from the Codiga Hub
  • Create your own Code Analysis rules

Getting Started

Visit the Codiga Hub and select the rulesets to use for your project.

Then, create a codiga.yml at the root of your project with the list of rulesets you want to use.

Configuration example

Example of codiga.yml for Python:

rulesets:
  - python-security
  - python-best-practices

Code Snippets

Look for snippets using a shortcut or search using inline completions like GitHub Copilot.

Adapt the list of snippets by adding your own.

Quick Start

Start a comment and type what you want to have. Like GitHub Copilot, it suggests a list of snippets you can insert in your code.

Use of smart code snippet in Python

Use Snippets using Shortcuts

Install the extension and type . or / in your IDE to list all available smart code snippets for your project. Accept a smart code snippet using either Enter or Tab ↹. Go through the snippet variables using the Tab key.

Use of smart code snippet in Python

Note: snippets are suggested based on your environment: language, libraries used, and filename (e.g. especially for YML files).

Find and Reuse Smart Code Snippets

  • Get all snippets with a shortcut by using CTRL + ALT + S (CMD + SHIFT + S - ⌘⇧S on Mac) and reuse them inline
  • Find snippets using an internal search engine using CTRL + ALT + C (CMD + SHIFT + C - ⌘⇧C on Mac) and search for a snippet
  • Import a snippet by typing its shortcut (e.g. react.component in JavaScript/Typescript or requests. in Python)

Coding Assistant to find snippets

Create Smart Code Snippets

Create a smart code snippet by selecting the code and click on Create Codiga Snippet. The keywords put in your snippet are used to index the snippet and find it using smart search.

Creation of Smart Code Snippet

Supported Languages

C, C++, CSS, HTML, Java, Javascript, Typescript, Python, Dart, Ruby, PHP, Scala, Apex, Terraform, Docker, Go, Rust, Shell, Solidity, YAML.

Getting API keys from Codiga

You need an API Token from Codiga. Log on Codiga using your GitHub, GitLab or Bitbucket account.

Then, in your preferences, generate a new API key as shown below.

Generate API Token on Codiga

Add the token in your VS Code preferences.

Enter your API keys

Sending feedback

You can either fill a bug report directly. If you do not want to open a ticket, you can also directly contact us.

Learn More

About

VS Code plugin that suggests code blocks as you type and check for errors. Works for JavaScript, TypeScript, Python, Java, Scala, Ruby, PHP, Apex, Docker

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published