A Visual Studio Code extension which adds syntax highlighting for Fastly Varnish Configuration Language (VCL) files.
For example, the extension scopes Fastly code macros as control keywords using a regular expression in JSON:
Visual Studio Code themes such as GitHub Dark Default or the default Light+ map scopes to colours and styles.
This was built entirely from the public VCL reference.
Installation from Marketplace
The extension is in the Visual Studio Code Marketplace. To install in Visual Studio Code, switch to the Extensions View and search for “Fastly”. Select the “Fastly Varnish Configuration Language (VCL)” extension and use the Install button. The extension will syntax highlight code for any file with a .vcl extension.
Installation from GitHub
Alternatively, to install the extension from GitHub:
Uninstall (or disable) any previously-enabled VCL extensions.
Download the latest GitHub release and then run:
Please open a pull request with your changes.
Install NPM - Node.js Package Manager
Install VSCE - Visual Studio Code Extensions is a command-line tool for packaging, publishing and managing VS Code extensions
Install Electron - Node module helps you test VS Code extensions
Building and Installing
To run the grammar tests:
The test cases are stored as markdown files under
[1.0.4] - 2022-11-03
[1.0.3] - 2022-10-10
[1.0.2] - 2022-10-04
[1.0.1] - 2022-09-07
[1.0.0] - 2022-09-06
Special thanks to all contributors:
Is this useful? Let me know! Leon Brocard <firstname.lastname@example.org>