Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>CodeAutoNew to Visual Studio Code? Get it now.
CodeAuto

CodeAuto

MacrosoftInc

|
584 installs
| (5) | Free
CodeAuto, the innovative plugin that helps reduce human effort while coding!! CodeAuto is a powerful tool designed to streamline the coding process and make it more efficient. With Code CodeAuto, you can save valuable time and energy by automating repetitive tasks, generating code snippets, and refa
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

CodeAuto for VSCode

CodeAuto powered by ChatGPT, the innovative plugin that helps reduce human effort while coding!! CodeAuto is a VS Plugin which is built on top of ChatGPT, an Open AI tool, is a powerful tool designed to streamline the coding process and make it more efficient. With CodeAuto, you can save valuable time and energy by automating repetitive tasks, generating code snippets, and refactoring the code and it helps to find the errors too

Features

  • 💡 Ask general questions or use code snippets from the editor to query CodeAuto via an input box in the sidebar
  • 🖱️ Right click on a code selection and run one of the context menu shortcuts
    • Unit Test script
    • Code refactoring
    • Write Documentation
  • 💻 View responses in a panel next to the editor
  • 🚀 See the response as it is being generated in real time
  • 💬 Ask follow-up questions to the response (conversation context is maintained)
  • 📝 Insert code snippets from the AI's response into the active editor by double clicking on them

Setup

To use this extension, install it from the VSCode marketplace.

  1. After the installation is complete, you will need to add your OpenAI API key to the extension settings in VSCode. To do this, open the Settings panel by going to the File menu and selecting Preferences, then Settings.
  2. In the search bar, type CodeAuto to filter the settings list.
  3. In the CodeAuto API Url section, enter your API key in the top field

After completing these steps, the extension should be ready to use.

Obtaining API key

To use this extension, you will need an API key from OpenAI. To obtain one, follow these steps:

  1. Go to OpenAI's website. If you don't have an account, you will need to create one or sign up using your Google or Microsoft account.
  2. Click on the Create new secret key button.
  3. Copy the key and paste it into the API Key field in the extension settings.

Settings

The extension can be configured or customized by changing several settings. You can choose between ChatGPT and GPT4 by changing the Model setting (only if you already have access to GPT4 API). A custom API URL can also be set in the API URL field (probably looks something like https://openai.xxxxxx.net/v1, can be used to connect to a self-hosted instance of the API or a proxy).

Using the Extension

To use the extension, open a text editor in Visual Studio Code and open the CodeAuto panel by clicking on the CodeAuto icon in the sidebar. This will open a panel with an input field where you can enter your prompt or question. By clicking enter, the request will be sent to ChatGPT. Its response will be displayed below the input field in the sidebar (note that it may take some time for the response)

To insert a code snippet from the AI's response into the editor, simply click on the code block in the panel. The code will be automatically inserted at the cursor position in the active editor.

You can select some code in the editor, right click on it and choose one of the following shortcuts from the context menu:

Commands:

  • CodeAuto : Unit Test script: helps to write the unit test of the given code
  • CodeAuto : Code refactoring: will try to refactor the selected code
  • CodeAuto : Write Documentation: will explain what the selected code does

Disclaimer Note

Macrosoft is not responsible for any source code which is uploaded to ChatGPT server. Macrosoft is not making copy of your code or anything to host in Macrosoft servers. All of the code moving to the ChatGPT is purely users responsibility. By using this plugin, the user is agreeing to selecting the code and uploading to the ChatGPT for generating the use cases. As CodeAuto is built on top of ChatGPT, all the disclaimers of ChatGPT is applicable to CodeAuto also. We do not guarantee the accuracy, reliability, or completeness of any information provided by CodeAuto. We will not be liable for any losses, injuries, or damages arising from the use of the information provided.

By using CodeAuto, you acknowledge and agree to these disclaimers and disclaimers from ChatGPT and the limitations of using an AI language model.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft