Continue: Enhance VS Code with AI Code Completion

Updated on May 16,2025

Table of Contents

In today's rapidly evolving software development landscape, the integration of Artificial Intelligence (AI) into coding environments is becoming increasingly vital. Many extensions are now available for code editors, empowering developers to leverage Large Language Models (LLMs) to complete code and assist with coding tasks. If you're seeking a way to boost your productivity and infuse intelligence into your workflow, Continue offers an intriguing open-source solution. This article dives deep into Continue, exploring its features, how to use it, and whether it is the right tool for you.

Key Points

Continue is an open-source autopilot for VS Code and JetBrains, designed to integrate LLMs into your coding environment.

It supports various LLMs including OpenAI, open-source models, and customization for workflow integration.

Key features include code completion, boilerplate generation, code refactoring, and unit test creation.

Continue allows selecting code segments and asking specific questions to LLMs.

The extension is designed to enhance coding efficiency and reduce repetitive tasks.

Introduction to Continue

What is Continue?

Continue is an open-source autopilot designed for seamless integration with both VS Code and JetBrains IDEs . It's crafted to make coding with LLMs easier. This extension is created to enhance the coding process by providing a way to integrate Large Language Models directly into your coding workflow. This tool is particularly aimed at streamlining coding and offering assistance in various coding tasks.

As AI and LLMs become more prevalent, extensions like Continue will become instrumental in optimizing coding processes. The growing focus on coding-oriented LLMs highlights the necessity of tools such as Continue to make coding more accessible and efficient. By automating tedious tasks and integrating AI-driven assistance, Continue helps developers focus on more complex and creative aspects of their work.

Key Features and Functionality

Continue is built with numerous features designed to augment coding efficiency and productivity

. These include:

  • LLM Integration: Facilitates the integration of Large Language Models (LLMs) directly into VS Code and JetBrains editors.
  • Streamlined Coding: Automates coding tasks, including boilerplate generation, Code Refactoring, and unit test creation.
  • Various LLM Support: Supports a variety of LLMs like OpenAI, open source models, and provides customization options for workflow integration.
  • Code Selection and Questioning: Enables users to select specific code segments and ask targeted questions to LLMs, making it easier to understand and optimize code.
  • Workflow Customization: Offers customization options for seamless workflow integration, enabling developers to tailor the tool to their specific needs.

By focusing on these features, Continue strives to streamline the coding process, reduce manual and repetitive tasks, and provide AI-driven support directly within the coding environment. This results in a more efficient and productive workflow, enabling developers to concentrate on the creative and challenging aspects of their work.

Step-by-Step Guide to Installing and Using Continue

Installing Continue in VS Code

To harness the power of Continue in your VS Code environment, follow these steps for a seamless installation

:

  1. Open VS Code: Launch your Visual Studio Code editor.
  2. Navigate to Extensions: On the left sidebar, click on the Extensions icon (usually represented by a square icon with other squares branching from it).
  3. Search for Continue: In the Extensions search bar, type "Continue" to find the Continue extension.
  4. Install the Extension: Locate "Continue - CodeLlama, GPT-4, and more" and click the Install button.
  5. Restart VS Code: Once the installation is complete, restart VS Code to ensure the extension is properly activated.

Once installed, the Continue extension is ready to streamline your coding process.

Initial Setup and Configuration

After installation, setting up and configuring Continue for optimal use is straightforward

:

  1. Locate the Continue Sidebar: After restarting VS Code, find the Continue icon in the left sidebar. Click on it to open the Continue panel.
  2. Drag to the Right Sidebar: For a better user experience, it’s recommended to move the Continue panel to the right sidebar. This prevents it from covering your file explorer and makes it more accessible during coding. Simply drag the Continue icon to the right side of your VS Code window.

[Picture of VS Code with Continue dragged to the right sidebar]

With this initial setup, Continue is now easily accessible and ready to enhance your coding workflow.

Using Continue in Action

Now that Continue is installed and set up, let's explore how to use it effectively in your coding projects

:

  1. Select Code: Open any code file in VS Code. Highlight a section of code you want to work with or understand better.

  2. Engage Continue: Press Ctrl+M (or Cmd+M on macOS). This action toggles the Continue input box on the right sidebar, pre-filled with the selected code.

    [Picture of code selected in VS Code with Continue input box open]

  3. Ask a Question: Type your question or command in the input box. For example:

    • "What does this code do?"
    • "How can I optimize this function?"
    • "Please generate unit tests for this code."
  4. Submit and Review: Press Enter to submit your query to the LLM. Continue will process your request and display the results in the sidebar.

  5. Interact and Iterate: Review the response, and engage further by asking follow-up questions or requesting specific actions based on the initial output. This interactive process can significantly improve your understanding and efficiency.

  6. Automatic Debugging: You can highlight code with error and then engage Continue to get error fixed.

By using these steps, you can effectively leverage Continue to understand, optimize, and generate code directly within your VS Code environment.

Pros and Cons of Using Continue

👍 Pros

Seamless integration with VS Code and JetBrains.

Support for various LLMs including OpenAI and open-source models.

Automates boilerplate code generation, refactoring, and unit test creation.

Offers a contextual understanding of code blocks through question and answer.

Highly customizable to fit specific workflows and preferences.

Offers a free tier with access to powerful LLMs like GPT-4 for initial experimentation.

👎 Cons

Requires a basic understanding of LLMs and AI concepts.

Initial setup and configuration can be complex for novice users.

The free trial may have usage limits, requiring paid subscription for heavy use.

LLM-generated code may require review and manual adjustments.

The tool is in active development, so documentation might not always be up-to-date.

The quality of code generation depends on the underlying LLM; results can vary.

Core Features of Continue

Automation and Integration

Continue focuses on automating several coding tasks

. The aim is to streamline workflows and make coding with LLMs more accessible directly from your code editor.

  • Boilerplate Generation: Quickly create standard code structures with minimal manual effort. Reduce time spent on setting up initial code frameworks.
  • Code Refactoring: Improve the structure, readability, and performance of existing code. Maintain and enhance code quality with AI assistance.
  • Unit Test Creation: Automatically generate unit tests to ensure code reliability and correctness. Enhance code robustness and reduce potential bugs.

This helps developers to focus on more important aspects of coding.

LLM Support

It has support for multiple large language models

, such as OpenAI's models and various open-source alternatives. It provides customization for workflow integration. This offers great flexibility to integrate any LLM into VS Code and JetBrains, regardless of its source. Customizing the workflow with ease lets developers tailor the tool to their specific needs and environments.

FAQ

What is the primary use case for the Continue extension?
The primary use case for the Continue extension is to enhance coding efficiency and productivity by integrating Large Language Models (LLMs) into the development workflow. Continue streamlines various coding tasks and provides AI-driven support directly within the coding environment.
Does Continue support open-source LLMs?
Yes, Continue supports a variety of open-source LLMs. The tool is designed to be versatile and allow developers to integrate community-driven AI models for a more customizable experience.
Is Continue suitable for both individual developers and teams?
Yes, Continue can be beneficial for both individual developers and teams. For individuals, it can help streamline the coding process and provide AI-driven support for various tasks. For teams, Continue can enhance collaboration and standardize coding practices, making it an invaluable asset.

Related Questions

Which LLMs does Continue support?
Continue is designed to be versatile and support a wide array of LLMs, offering developers the flexibility to choose the models that best suit their needs. The LLMs that are natively supported include but aren’t limited to: OpenAI Models: GPT-4, GPT-3.5 Turbo, and other models available through the OpenAI API. Open Source Models: Support for various open-source models available on platforms like Hugging Face, allowing developers to leverage community-driven AI models. Custom Models: Continue supports custom LLMs, allowing developers to integrate proprietary or fine-tuned models by configuring the appropriate API endpoints and settings. The customization options enable you to tailor the tool to specific requirements. Check the official Continue documentation or community forums for the latest updates on supported LLMs and integration guides.
How can Continue help with learning new codebases?
Continue is an excellent tool for developers looking to quickly grasp new codebases. It aids in understanding unfamiliar code through several mechanisms: Code Summarization: Continue can provide a high-level summary of what a selected block of code does, offering a quick overview without having to dissect every line. Functionality Explanation: By highlighting a function and asking, 'What does this function do?', Continue provides clear and concise explanations of its purpose and operation. Contextual Information: Continue can identify dependencies and relationships between different parts of the codebase, helping you understand how everything fits together. Question and Answer: Allows you to ask specific questions about the code and receive targeted answers, clearing up confusion and filling knowledge gaps. By utilizing these features, developers can significantly reduce the time and effort required to become proficient with new codebases, making Continue an invaluable asset in collaborative and fast-paced development environments.

Most people like