Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>AutoPilot AINew to Visual Studio Code? Get it now.
AutoPilot AI

AutoPilot AI

Vivek Paste

|
35 installs
| (1) | Free
AutoPilot AI Searchbar is a powerful Visual Studio Code extension that integrates OpenAI's GPT models into your coding environment. It provides an intuitive chat interface and context-aware code actions to enhance your development workflow. With features like code explanation, refactoring, and docum
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

🤖 Autopilot AI chat - VSCode Extension

Autopilot AI Searchbar is a powerful Visual Studio Code extension that integrates OpenAI's GPT models into your coding environment. It provides an intuitive chat interface to enhance your development workflow. With features like code explanation, refactoring, and documentation, it’s designed to streamline your coding experience directly within VSCode.


🚀 Features

  • 💬 Interactive Sidebar Chat:
    • Ask coding questions or get assistance directly from the sidebar.
    • Supports multi-turn conversations with chat history.
  • 🖱️ Right-Click Code Actions:
    • 💡 Explain Selection: Get detailed explanations of selected code.
    • 🔧 Refactor Code: Automatically refactor selected code for improved readability and performance.
    • 📃 Document Selection: Generate professional documentation for your code, including summaries, inline comments, and docstrings.
  • 🧠 Powered by OpenAI:
    • Leverages gpt-4 for intelligent code analysis and generation.
  • 🖼️ Responsive UI:
    • Clean, modern chat interface with support for code blocks .
    • Displays typing indicators for a smooth user experience.
  • 🔒 Secure Storage:
    • Stores sensitive data like session tokens and API keys securely in VSCode’s global state.

🛠️ Installation

  1. Install the extension from the VSCode Marketplace (or sideload the .vsix file for local testing).

  2. Upon activation, the Autopilot AI Searchbar panel will appear in the sidebar.

  3. Complete the setup by providing:

    • ✉️ Email Address: For user identification.
    • 🔑 API Key: Your OpenAI API key.
  4. Click Submit to authenticate and start using the extension.


💡 Usage

🗨️ Sidebar Chat

  1. Open the Autopilot AI Searchbar view from the VSCode sidebar.
  2. Type your coding question or prompt in the input box.
  3. Receive responses with formatted code blocks.

🖱️ Right-Click Code Actions

  1. Select a block of code in any editor.
  2. Right-click and choose one of the following:
    • 💡 Explain Selection: Get a detailed breakdown of what the selected code does.
    • 🔧 Refactor Code: Request AI-driven refactoring suggestions for cleaner, more efficient code.
    • 📃 Document Selection: Generate comprehensive documentation, including high-level summaries, inline comments, and docstrings.

🔑 Logout

  • Use the autopilot-searchbar.logout command to clear your session and log out securely.

🧩 Settings

Setting Description
chatgptEmail Stores the user’s email address.
chatgptApiKey Stores the OpenAI API key securely.

🛠 Supported Models

  • gpt-4 (default model for all AI interactions)

🧑‍💻 Contributing

Interested in contributing? Feel free to:

  • Open an issue to report bugs or suggest features.
  • Fork the repository and submit a pull request with your improvements.

📝 License

MIT License © 2025


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