Provides V language support for Visual Studio Code.
- syntax highlighting
- code snippets for quick coding
- completion, diagnostics, navigation, inlay hints, and other language features via VLS
Install VLS and ensure the vls
executable is in PATH. Alternatively, set v.vls.command to its
absolute path. The extension starts VLS over stdio when a V workspace
is opened.
The available VLS settings are:
v.vls.enable: enable or disable VLSv.vls.command: path or command name for the VLS executablev.vls.args: additional command-line argumentsv.vls.inlayHints.enabled: enable or disable inlay hintsv.vls.diagnostics: enable or disable live diagnostics
First you will need to install Visual Studio Code >= 1.105.
In the command palette (Cmd+Shift+P) select Install Extensions and choose V.
Alternatively you can install the extension from the Marketplace.
Now open any .v, .vsh, .vv file in VS Code.
Note: It is recommended to turn Auto Save on
in Visual Studio Code (File -> Auto Save) when using this extension.
V: Run current fileV: Format current fileV: Build an optimized executable from current fileV: Show V versionV: Update VLSV: Restart VLS
You can access all of the above commands from the command palette (Cmd+Shift+P).
Clone this repository and run npm install to install the dependencies.
Then press F5 to open a new VS Code window with the extension loaded.
Open the output console (Cmd+Shift+U) to see the debug output from the extension.
Run Cmd+Shift+P and select Preferences: Open User Settings to update settings.
