Home > Web Front-end > JS Tutorial > No Copilot? No Problem! Get Free AI in VSCode Now

No Copilot? No Problem! Get Free AI in VSCode Now

Linda Hamilton
Release: 2025-01-13 16:29:42
Original
581 people have browsed it

Tired of relying on paid tools like Copilot, Cursor AI, or ChatGPT? Here's how you can integrate a powerful and completely free AI assistant directly into your Visual Studio Code. Follow these steps, and you’ll have a personal coding guru at your fingertips—without any restrictions!


No Copilot? No Problem! Get Free AI in VSCode Now

Step 1: Set Up Your Groq Account

  1. Visit Groq Console.
  2. Create an account or log in.
  3. Navigate to API Keys and create a new key.

No Copilot? No Problem! Get Free AI in VSCode Now

  1. Important: Copy and save your API key immediately—it’s displayed only once!

No Copilot? No Problem! Get Free AI in VSCode Now

Step 2: Install the Continue Extension

  1. Open Visual Studio Code.
  2. Search for “Continue” in the Extensions Marketplace.
  3. Install the extension.

Step 3: Configure the Continue Extension

No Copilot? No Problem! Get Free AI in VSCode Now

  1. Open the installed extension and click the gear icon (third icon from the right at the top of the page).
  2. A configuration file will open. Replace its content with the following:
   {
     "models": [
       {
         "model": "AUTODETECT",
         "title": "Ollama",
         "apiBase": "http://localhost:11434",
         "provider": "ollama"
       },
       {
         "model": "AUTODETECT",
         "title": "Groq",
         "apiKey": "YOUR_GROQ_API_KEY",
         "provider": "groq"
       }
     ],
     "customCommands": [
       {
         "name": "test",
         "prompt": "{{{ input }}}\n\nWrite a comprehensive set of unit tests for the selected code. It should setup, run tests that check for correctness including important edge cases, and teardown. Ensure that the tests are complete and sophisticated. Give the tests just as chat output, don't edit any file.",
         "description": "Write unit tests for highlighted code"
       }
     ],
     "tabAutocompleteModel": {
       "title": "codeqwen",
       "provider": "ollama",
       "model": "starcoder2:3b"
     },
     "contextProviders": [
       { "name": "code", "params": {} },
       { "name": "docs", "params": {} },
       { "name": "diff", "params": {} },
       { "name": "terminal", "params": {} },
       { "name": "problems", "params": {} },
       { "name": "folder", "params": {} },
       { "name": "codebase", "params": {} }
     ],
     "slashCommands": [
       { "name": "edit", "description": "Edit selected code" },
       { "name": "comment", "description": "Write comments for the selected code" },
       { "name": "share", "description": "Export the current chat session to markdown" },
       { "name": "cmd", "description": "Generate a shell command" },
       { "name": "commit", "description": "Generate a git commit message" }
     ]
   }
Copy after login
  1. Replace YOUR_GROQ_API_KEY with your saved API key. Save the file.

Step 4: Start Using Your AI Partner!

  • Highlight any code in your editor.
  • Press Command L (or the equivalent on your system) to open Continue.
  • Ask questions, request code reviews, or generate solutions without limits!

Why This Is a Game-Changer:

  • Completely Free: Say goodbye to subscription fees!
  • Unlimited Prompts: Unlike ChatGPT, you’re not capped by usage limits.
  • Seamless Integration: Directly within your VSCode workspace.
  • Customizable: Tailor commands to suit your needs.

Experience a smarter, faster way to code. Set up your free AI assistant today and elevate your coding workflow to the next level! ?

The above is the detailed content of No Copilot? No Problem! Get Free AI in VSCode Now. For more information, please follow other related articles on the PHP Chinese website!

source:dev.to
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template