This extension adds support for the V programming language to the Zed editor.
- Open Zed
- Press
ctrl+shift+xorcmd+shift+xto open the extension menu - Search for
vand click on install
This extension automatically tries to download VLS. If the download keeps failing, you must manually install VLS.
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 themainfunction 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",
}
]