Skip to content

JRB-y/gptest

Repository files navigation

GPTest VS Code Extension

Overview

The GPTest VS Code Extension is a simple extension that allows you to test your code using OpenAI's GPT-3 language model. With this extension, you can easily get test code for your projects and quickly iterate on your development.

GPTest.mp4

Features

The GPTest VS Code Extension has the following features:

  • A single command, "GPTest", that prompts the user to enter their OpenAI API key and get test code for their projects.
  • Automatically detects the programming language of the active document and minifies the code before sending it to the OpenAI API.
  • Displays the test code result in a new editor for easy viewing.

Requirements

To use the GPTest VS Code Extension, you will need:

  • A valid OpenAI API key.
  • A compatible version of Visual Studio Code.

Usage

To use the GPTest VS Code Extension, follow these steps:

  1. Open Visual Studio Code and navigate to a file with code that you want to test.
  2. Open the command palette by pressing Ctrl+Shift+P (Windows, Linux) or Cmd+Shift+P (macOS).
  3. Search for the "GPTest" command and select it.
  4. If prompted, enter your OpenAI API key.
  5. The extension will automatically detect the programming language of the active document and minify the code before sending it to the OpenAI API.
  6. The test code result will be displayed in a new editor.

Contributing

If you encounter any bugs or issues with the GPTest VS Code Extension, please report them on the GitHub repository's issue tracker. Pull requests are also welcome for bug fixes or new features.

License

The GPTest VS Code Extension is released under the MIT License.

About

GPTest VS Code Extension

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published