Introducing the AI-powered programming tool - Continue.dev

Introducing the AI-powered programming tool - Continue.dev

Daily short news for you
  • Hic, I've been really busy lately, and there have been so many changes that I haven't had time to write a longer post. Instead, I'm trying to maintain this short daily update for readers. Since it's short, it's much quicker to write.

    I'm currently tweaking the interface a bit while also adding a new feature. Can you guess what it is? Here's a hint: it has something to do with AI and Tiktok 😁

    » Read more
  • Currently on the 14-day trial of Windsurf, today is day seven, and I have some quick impressions as follows:

    First, the interface is a bit more customizable, giving a flatter and friendlier feel compared to the traditional VSCode.

    Second, the suggestions are super fast but a bit hasty. They’re not always accurate, yet they confidently offer several lines at once. So, not every tab tab is correct. However, it reads context well, better than Copilot.

    Third, the Chat/Edit feature is top-notch, very good, almost a perfect understanding, probably on par with Cursor, but I’m not entirely sure; that's just how it feels.

    Additionally, one annoyance is that sometimes it suggests but the tab doesn’t match, which makes it a hassle to delete.

    I wonder how it will be after the 14 days, so I will continue to update. But overall, it’s way better than Copilot.

    Oh! One more thing, the Vietnamese in this one is terrible. I have no idea why!?

    » Read more
  • smee.io is a simple way to create a webhook address and map it to the localhost address on your computer.

    $ npm install --global smee-client $ smee -u https://smee.io/eu4UoW8vrKSZtTB

    » Read more

The Issue

Hello 2coffee.dev readers! In my previous articles, I've been proudly using various coding assistant tools, also known as Generative AI. Comparing them, I concluded that Cursor is among the top. However, with a monthly price tag of $20, it's quite expensive and might make many developers, including myself, think twice. Based on this fact...

After the trial period of Cursor expired, I decided to try Continue.dev and share my objective review about this tool. Here are the results of my research. In this article, I'll cover some of the key features, usage, and my personal opinions.

What is Continue.dev?

Continue.dev is a leading open-source AI coding assistant for developers. You can connect and use any LLM model to provide code context and use the auto-completion feature. In simple terms, Continue is like a framework that can be customized with any LLM model, depending on your needs.

Continue has four main features: Chat, Autocomplete, Edit, and Action.

Among them, Chat is the most basic feature, allowing you to chat with LLMs about anything without leaving the code editor. For example, you can ask about a feature, request an explanation, or ask for code snippets.

Autocomplete is a very useful feature. Continue uses code context to suggest the next code snippet you'll write. Your task is simply to press Tab, and the AI will complete the code for you.

Edit directly modifies the code based on your commands. For example, you can select a code snippet and ask the AI to "refactor it," and it will rewrite the code immediately.

Actions are similar to Chat but have specific "splash commands" to perform tasks.

To use all these features, Continue must be connected to LLM models. For example, you can use OpenAI, Claude, or LLama for Chat. However, for Autocomplete, it's recommended to use specialized or more affordable models like Codestral from Mistral.

The reason is that each feature has a different token consumption rate. While Chat only requires simple input, Autocomplete needs to ingest the entire file to provide suggestions, which can be costly.

The context issue is solved by Continue using embedding and re-ranking models. Embedding models are used for indexing and finding similar code suggestions, while re-ranking models determine the relevance between the query and code to provide accurate answers. To learn more about these mechanisms, read the documentation on Embeddings model & Reranking model.

Configuration

Continue supports VSCode and JetBrains. We need to install the extension into our code editor before using it.

Next, we need to configure the models for Continue to work. Continue has a detailed guide on how to configure, including free and paid models. We need to focus on four main models for Chat, Autocompletion, Embeddings, and Reranking.

To access the settings, go to the Continue icon in the Status Bar at the bottom right corner of VSCode and select "Configure autocomple options."

Here's an example of my config.json file:

{
  "models": [
    {
      "title": "Codestral",
      "provider": "mistral",
      "model": "codestral-latest",
      "apiKey": "xxx"
    }
  ],
  "tabAutocompleteModel": {
    "title": "Codestral",
    "provider": "mistral",
    "model": "codestral-latest",
    "apiKey": "xxx",
    "contextLength": 32000
  },
  "embeddingsProvider": {
    "provider": "openai",
    "model": "voyage-code-2",
    "apiBase": "https://api.voyageai.com/v1/",
    "apiKey": "xxx"
  },
  "reranker": {
    "name": "voyage",
    "params": {
      "model": "rerank-1",
      "apiKey": "xxx"
    }
  },
  "customCommands": [],
  "allowAnonymousTelemetry": false,
  "docs": []
}

Basic Usage

First, let's try the Autocomplete feature. It's simple! Every time you type, the extension automatically completes the code.

Autocomplete

Next, let's try the Chat feature! Select a code snippet, press Cmd + L, and ask for an explanation.

Chat

You can also ask general questions.

Chat

This saves time looking for answers online.

Next, let's try the Edit feature. Modify the code directly based on your requests. Select a code snippet, press Cmd + i, and enter your prompt.

Edit

Finally, let's try the Actions feature, which is similar to Chat but with a prefix to instruct the AI to perform specific tasks. For example, create a commit message for git.

Actions

If you're interested in customizing Continue, there's a "Customize" section to dig deeper and configure LLM models, create custom Actions, and more.

Comparison with Cursor

Continue has features similar to Cursor, making the user experience quite similar. However, in terms of code suggestions, Cursor performs better. Continue is free, whereas Cursor costs $20 per month.

Currently, I'm using Continue with models from Mistral. They offer two free Chat and Completion models. You can learn more about Codestral at Codestral: Hello, World!. Based on my experience, Codestral works well but not as well as Cursor.

One issue with Continue is that the auto-completion feature sometimes doesn't work. This issue has been known for a while but hasn't been fully resolved. When this happens, try restarting the application or your machine. Hopefully, this issue will be fixed in the future.

Conclusion

This article is an objective review of Continue.dev after using it for nearly a month. If you're using it, please share your thoughts below. Are you using a similar tool? Share your experiences and let's discuss together. Thank you!

Premium
Hello

Me & the desire to "play with words"

Have you tried writing? And then failed or not satisfied? At 2coffee.dev we have had a hard time with writing. Don't be discouraged, because now we have a way to help you. Click to become a member now!

Have you tried writing? And then failed or not satisfied? At 2coffee.dev we have had a hard time with writing. Don't be discouraged, because now we have a way to help you. Click to become a member now!

View all

Subscribe to receive new article notifications

or
* The summary newsletter is sent every 1-2 weeks, cancel anytime.
Author

Hello, my name is Hoai - a developer who tells stories through writing ✍️ and creating products 🚀. With many years of programming experience, I have contributed to various products that bring value to users at my workplace as well as to myself. My hobbies include reading, writing, and researching... I created this blog with the mission of delivering quality articles to the readers of 2coffee.dev.Follow me through these channels LinkedIn, Facebook, Instagram, Telegram.

Did you find this article helpful?
NoYes

Comments (0)

Leave a comment...