This extension adds support for the V programming language to the Zed editor.
- Open Zed
- Press
ctrl
+shift
+x
orcmd
+shift
+x
to open the extension menu - Search for
v
and click on install
This extension automatically tries to download v-analyzer
. If the download keeps failing, you must manually install v-analyzer
.
By default runnables
won't do anything as they only run appropriately tagged tasks.
To use runnables, you must add one of these supported tags to your tasks:
v-main
: Runs on themain
function in a V file.v-test
: Runs on functions whose names start withtest_
Some example tasks to get you started. Place these in your tasks.json
file.
[
{
"label": "V run main",
"command": "v",
"args": ["run", "$ZED_FILE"],
"tags": ["v-main"],
"use_new_terminal": false,
"reveal": "always"
},
{
"label": "V test",
"command": "v",
"args": ["test", "$ZED_DIRNAME"],
"tags": ["v-test"],
"use_new_terminal": false,
"reveal": "always",
}
]