Coder Social home page Coder Social logo

chatgpt-code-analyzer's Introduction

ChatGPT Code Analyzer for Visual Studio Code

The ChatGPT Code Analyzer is a Visual Studio Code extension that uses the OpenAI ChatGPT API to analyze your code and detect potential security vulnerabilities. The extension works with various file types and supports both single file and whole project analysis.

Features

  • Analyze a single file for security vulnerabilities
  • Analyze an entire project for security vulnerabilities

Installation

Install the ChatGPT Code Analyzer extension from the Visual Studio Code Marketplace. After installation, you will be prompted to enter your OpenAI API key. You can also set your API key by adding it to your settings.json file:

{
  "chatgpt-code-analyzer.apiKey": "<your_api_key_here>"
}

Usage

Analyze a single file

  1. Open a file you want to analyze in Visual Studio Code.
  2. Right-click within the editor and select "Analyze File for Security Vulnerabilities" from the context menu or press Cmd+Shift+P (Mac) or Ctrl+Shift+P (Windows/Linux) and type "Analyze File for Security Vulnerabilities" to execute the command.

Analyze an entire project

  1. In the Visual Studio Code Explorer, right-click the root folder of your project.
  2. Select "Analyze Project for Security Vulnerabilities" from the context menu or press Cmd+Shift+P (Mac) or Ctrl+Shift+P (Windows/Linux) and type "Analyze Project for Security Vulnerabilities" to execute the command.

Requirements

Visual Studio Code 1.60 or newer OpenAI API key

License

This project is licensed under the MIT License.

chatgpt-code-analyzer's People

Contributors

milindpurswani avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.