Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>CivetNew to Visual Studio Code? Get it now.
Civet

Civet

DanielX

|
1,809 installs
| (4) | Free
Civet Language Server
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Civet Language Server

Civet is a programming language that compiles to TypeScript or JavaScript, so you can use existing tooling while enabling concise and powerful syntax

This plugin enables VSCode type checking, hints, completion, etc. for .civet files, via a language server.

Features

  • Type checking via TypeScript
  • Syntax highlighting
  • Go to definition
  • Find all references
  • Completions (but not yet immediately after .)
  • Comment/uncomment
  • Symbols outline
  • Diagnostics
  • Custom transpiler plugins

Type Checking

By default, all Civet files are type checked using TypeScript. To skip checking a particular file, add the comment // @ts-nocheck to the top of the file.

Plugins

Custom transpilers can be added in your host project root folder under ${projectRoot}/.civet/name-plugin.mjs.

Example: Hera plugin

import Hera from "@danielx/hera"
const { compile: heraCompile } = Hera

export default {
  transpilers: [{
    extension: ".hera",
    target: ".cjs",
    compile: function (path, source) {
      const code = heraCompile(source, {
        filename: path,
      })

      return {
        code
      }
    }
  }],
}

See also: example CoffeeScript Plugin

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft