Why VDev
- The compiler is the engine. Hover, definitions, references, rename and
completion come from
v itself. There is no separate language server to
install, and the answers match what the compiler says.
- Nothing VS Code already does. Testing, coverage, tasks, debugging and
MCP go through VS Code's own views. VDev only feeds them, so you get one
consistent UI instead of a second one.
- Only in V projects. Commands, menus and checks stay out of workspaces
that are not V.
- Windows first, Linux next. Every feature is tested on both, in CI and
by hand. macOS should work but is not tested yet.
Features
Language
Diagnostics while you type (unsaved changes included), hover with doc
comments, go to definition and type definition, call hierarchy, find
references, rename, signature help, completion, inlay hints, quick fixes for
imports, organize imports, fill struct fields, formatting with v fmt,
outline, workspace symbols, folding, number hover, and file names inside
strings such as $embed_file('...').
Also included: syntax highlighting and snippets for .v, .vsh and v.mod;
v.mod validation and completion; color swatches for gg colors; C interop
checks for #include and C.name; colors for V templates; and the Routes
view for veb apps.
Run, test and debug
| Area |
What you get |
| Tasks |
Run, Build, Test, Watch, Check, Vet and Format, with errors in Problems |
| Profiles |
-g, -prod, -cc, -os, -gc, -d… chosen once, used by every command |
| Tests |
V tests in the Testing view, with run, debug and coverage |
| Debug |
GDB 14+ or lldb-dap, no C/C++ extension needed, with pretty printers for V strings, arrays and maps |
| Lenses |
Run and Debug above fn main(); run and debug icons beside each test, from the Testing view |
The side panel
- Actions: the build profile and every command as a button, the VPM
modules, and your own buttons (
vdev.actions).
- Environment: the Doctor, which checks whether this machine is ready
to build, run and debug V and says what to install, plus the paths and
versions of the toolchain.
- V Repo, inside a checkout of
vlang/v or a fork: rebuild and test the
compiler, run the checks CI runs, fetch upstream, install the fmt hook, and
bisect a regression with oldv.
- Project and TODOs views, and Duplicates, a report of
functions that look alike.
New project, REPL, scratch file, module and library docs (offline), v where,
generated C, profiling, compile timings, v repeat, JSON to struct,
v bin2v, C to V (c2v), v reduce, v bug, the V Playground, agent skills,
and v mcp serve as an MCP server for VS Code's agents.
vdev.markdown.check: Markdown checked the way v check-md checks vlang/v.
vdev.vectorize.enabled: Image to SVG, which traces icons and sprites
for gg and ui.
- The VDev Dark and VDev Light themes.
The full guide is in HELP.md, which also opens inside VS Code
(the ? in the panel title).
Requirements
| Need |
Notes |
| VS Code 1.145+ |
|
| V |
On PATH, or set vdev.executablePath. Build V from source for the newest features. |
| A C compiler |
TCC ships with V; GCC, Clang or LLVM-MinGW also work |
| GDB 14+ / lldb-dap |
Only for debugging. On Windows, the Doctor explains how to get a GDB of your own |
VDev replaces the official V extension (vlanguage.vscode-vlang). Both
handle .v files, so VDev offers to disable the official one in the
workspace when it finds both active.
Installation
Install VDev from the
Visual Studio Marketplace
(in VS Code: Extensions, search for VDev).
To install a specific build instead:
Download v-dev-<version>.vsix from the
latest release, or
from the vsix artifact of a CI run.
Install it:
code --install-extension v-dev-<version>.vsix
Or in VS Code: Extensions → ··· → Install from VSIX…
Open a folder with .v files. The V icon appears in the activity bar.
Quick start
- Open the VDev panel and go to Environment. The Doctor tells you
what is missing.
- In Actions, use New Project… or open an existing V project.
- Press F5 on
main.v to run it, or click Debug above
fn main().
- Open the Testing view to run your
_test.v files.
Configuration
The settings most people change:
| Setting |
Default |
Meaning |
vdev.executablePath |
empty |
Path to v. Empty means the first v on PATH. Accepts ~ and ${workspaceFolder} |
vdev.actions |
[] |
Your own buttons in the panel |
vdev.markdown.check |
off |
Check Markdown like v check-md |
vdev.vectorize.enabled |
off |
Image to SVG |
vdev.agents.mcp |
on |
Offer v mcp serve to VS Code's agents |
Every setting is listed in HELP.md.
Building from source
git clone https://github.com/luizcmarin/vdev
cd vdev
npm install
npm test # typecheck, lint, format check, unit tests
npm run test:vscode # end-to-end checks in a real VS Code
npm run test:engine # the language features, with a real V
npm run test:run # run, tasks, Testing view, coverage, GDB and lldb-dap
npm run test:vrepo # the V Repo tab, on a checkout of vlang/v (V_CHECKOUT)
npm run package # dist/v-dev-<version>.vsix
Every build output goes to dist/. The rules for changing the code are in
AGENTS.md.
Contributing
Bug reports, ideas and pull requests are welcome. Read
CONTRIBUTING.md first. Report problems in V itself (the
compiler or vlib) to vlang/v.
To report a security issue, follow SECURITY.md. Please do not
open a public issue for it.
License
GPL-3.0-only. Third-party material, such as the V logo and the
syntax grammar, is listed in NOTICE.md.
Made for the V community.