ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

V

by elliotchance ALL

Sublime Text support for the V programming language

Details

  • 1.5.0
  • github.​com
  • 12 months ago
  • 55 minutes ago
  • 1 year ago

Installs

  • Total 669
  • Win 334
  • Mac 140
  • Linux 195
Dec 9 Dec 8 Dec 7 Dec 6 Dec 5 Dec 4 Dec 3 Dec 2 Dec 1 Nov 30 Nov 29 Nov 28 Nov 27 Nov 26 Nov 25 Nov 24 Nov 23 Nov 22 Nov 21 Nov 20 Nov 19 Nov 18 Nov 17 Nov 16 Nov 15 Nov 14 Nov 13 Nov 12 Nov 11 Nov 10 Nov 9 Nov 8 Nov 7 Nov 6 Nov 5 Nov 4 Nov 3 Nov 2 Nov 1 Oct 31 Oct 30 Oct 29 Oct 28 Oct 27 Oct 26 Oct 25
Windows 2 0 1 0 0 0 0 1 2 0 0 0 0 1 2 3 1 1 1 0 0 2 0 0 2 1 2 1 0 2 0 0 0 0 0 1 5 0 2 1 0 2 0 1 0 1
Mac 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 1 0 1 0 1 2 1 0 0 0 0 0 0 0 1 0 0 1 0 0
Linux 0 3 0 0 0 0 0 0 5 0 1 0 0 0 0 1 0 0 0 0 0 0 1 0 0 2 0 1 1 1 0 0 1 2 0 0 0 0 0 0 0 0 0 0 1 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:

Package Control: Install Package

Package Control: Install Package

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:

Command Palette

Inline errors and warnings:

Inline errors and warnings

Quickly goto to any symbol:

Goto any symbol

Show assertion failures inline:

Assert failures

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 execute v -prod "some/folder/path".
  • output is optional (defaults to true). If false, the output is not shown in the “V” window. This is useful for commands you intend to be silent (such as v 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