AI Coding Assistant

If you write code, an AI assistant can be a game-changer — and you don't need a cloud subscription to get one. Your local LLM can help with writing, debugging, refactoring, and explaining code, all without sending your code to anyone else's servers.

Here's how to set it up with VS Code and LMStudio.

Step 1: Enable the LMStudio Server

LMStudio can run as a background server that other apps connect to:

  1. Open LMStudio and click the Developer Settings icon (it looks like a gear or chip — enable developer mode if you haven't already)

  2. Scroll down to Local Server settings

  3. Toggle on Start Local LLM Service — this lets the model run in the background so you don't have to keep the LMStudio chat window open

  4. Click Start Server (you can also access this from the system tray icon)

By default, LMStudio listens on localhost:1234. The server stays running as long as LMStudio is open (or as long as the background service is active).

Step 2: Install the Continue Extension

There are several VS Code extensions that connect to local LLMs. I use Continue because it's flexible, well-maintained, and supports multiple backends.

  1. Open VS Code and go to the Extensions tab (Ctrl+Shift+X)

  2. Search for “Continue” and install it

  3. It supports many providers — LMStudio, llama.cpp, Ollama, and more

Step 3: Connect Continue to LMStudio

In VS Code, open the Continue configuration (click the Continue icon in the sidebar → settings)

Add a new provider and select LMStudio

Set the API base to http://localhost:1234 (LMStudio's default)

Leave the model set to Auto — Continue will pick up whatever model is loaded in LMStudio

What Can You Use It For?

Tips

Alternatives to Continue

Continue isn't the only option. Other popular VS Code extensions for local LLMs include:

If you're not using VS Code, LMStudio's server API is OpenAI-compatible, so most tools that support OpenAI endpoints should work — including JetBrains IDEs, Neovim, and more.