Skip to content

About

A simple comment code VSCode extension for learning purposes written in a couple of ours.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

Carcargi Comment Generator

This is a Visual Studio Code extension that uses the OpenAI API to automatically generate comments for your code.

Features

  • Generate comments for selected code.
  • Use the power of OpenAI's GPT-4 to understand your code and provide relevant comments.

Installation

  1. Install the extension from a generated .vsix file.
  2. Once installed, you'll need to set the OpenAI API Key in the settings. Open your settings (File > Preferences > Settings) and set the carcargi-comment-generator.openaiApiKey to your OpenAI API key.

Usage

  1. Select the code you want to comment.
  2. Open the command palette with Ctrl+Shift+P or Cmd+Shift+P on macOS.
  3. Type 'Generate Comment' and hit enter.

This will generate a comment for your selected code and replace the code with the commented one. Keep in mind the token limit might cut long functions or portions of code.

License

Carcargi Comment Generator License

Copyright (c) 2023

Permission is hereby granted, free of charge, to any person obtaining a copy of this software (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

THE AUTHORS AND COPYRIGHT HOLDERS TAKE NO RESPONSIBILITY FOR THE ACTIONS OR USAGE OF THE SOFTWARE BY USERS. USERS ARE SOLELY RESPONSIBLE FOR THEIR USE OF THE SOFTWARE AND THE SOURCE CODE.

About

A simple comment code VSCode extension for learning purposes written in a couple of ours.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages