V
Sublime Text support for the V programming language
Details
Installs
- Total 1K
- Win 636
- Mac 257
- Linux 474
Sep 10 | Sep 9 | Sep 8 | Sep 7 | Sep 6 | Sep 5 | Sep 4 | Sep 3 | Sep 2 | Sep 1 | Aug 31 | Aug 30 | Aug 29 | Aug 28 | Aug 27 | Aug 26 | Aug 25 | Aug 24 | Aug 23 | Aug 22 | Aug 21 | Aug 20 | Aug 19 | Aug 18 | Aug 17 | Aug 16 | Aug 15 | Aug 14 | Aug 13 | Aug 12 | Aug 11 | Aug 10 | Aug 9 | Aug 8 | Aug 7 | Aug 6 | Aug 5 | Aug 4 | Aug 3 | Aug 2 | Aug 1 | Jul 31 | Jul 30 | Jul 29 | Jul 28 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 1 | 1 | 3 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 |
Linux | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 3 | 1 | 0 | 0 | 0 | 0 | 0 | 2 | 1 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 2 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
Sublime Text Support for the V Programming Language
This bundle provides V syntax highlighting for Sublime Text.
Installation
You can install the V package with Package Control:
For code completion you can install vlang/vls for Sublime Text 3 or 4.
Features
Commands for building, running, testing, formatting and updating V itself:
Inline errors and warnings:
Quickly goto to any symbol:
Show assertion failures inline:
Command Palette
Any commands that generate output will show in a new window called “V”. You may leave this tab open an any future runs will be appended.
V: Build
Build the current module (directory).
V: Build File
Build the current file.
V: Format File
Format the current file.
V: Format Module
Format the current module.
V: Format Project
Format the current project.
V: Run
Execute v run
on the current module (directory).
V: Run Test
Execute v run
only on the current file.
V: Test
Execute v test
only on the current module (directory).
V: Test File
Execute v test
only on the current file.
V: Update
Update V to the latest version (v up
).
Custom Commands
{
"caption": "Build Prod",
"command": "v",
"args": {
"cmd": "-prod ${module}", // required (string)
"output": true, // optional (boolean)
}
},
cmd
is required and in the example above will construct and executev -prod "some/folder/path"
.output
is optional (defaults totrue
). Iffalse
, the output is not shown in the “V” window. This is useful for commands you intend to be silent (such asv fmt
).
See Sublime Variables for full list, but some common ones are:
${file}
for the current file path.${file_path}
for the directory the current file exists in (the module).${folder}
for the project directory.
Contributing
Note: Make sure you uninstall the package if it's already installed with “Package Control > Remove Package…”
Now clone the package locally:
cd ~/Library/Application\ Support/Sublime\ Text/Packages
git clone https://github.com/elliotchance/vlang-sublime.git