Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>wcCompiler (.wcc) Language SupportNew to Visual Studio Code? Get it now.
wcCompiler (.wcc) Language Support

wcCompiler (.wcc) Language Support

SPR Lab

|
2 installs
| (0) | Free
Syntax highlighting and intellisense for wcCompiler Single File Components (.wcc)
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

wcCompiler — VS Code Extension

Language support for wcCompiler Single File Components (.wcc).

What is wcCompiler?

A zero-runtime compiler that transforms .wcc files into 100% native Web Components. No framework dependencies in the output — just vanilla JavaScript using the Custom Elements API.

Extension Features

  • Syntax Highlighting — Full TextMate grammar for .wcc files with embedded JS/TS/HTML/CSS
  • IntelliSense — Autocompletion, hover, and go-to-definition powered by Volar
  • Type Checking — TypeScript diagnostics in both script and template expressions
  • Template Expressions — IntelliSense inside {{}}, @event, :attr, model, if, show
  • Snippets — Quick scaffolding for components and directives

Snippets

Prefix Description
wcc Full component scaffold
wccmin Minimal component (no style)
each each iteration directive
eachkey each with :key
wif / wshow / wmodel Directives
sig / comp / wat signal / computed / watch
dprops / demits / dexpose defineProps / defineEmits / defineExpose
mount / destroy Lifecycle hooks
tref templateRef

Architecture

vscode-wcc/
├── packages/
│   ├── client/          Extension client (activation, grammar, snippets)
│   │   ├── src/         Extension entry point
│   │   ├── syntaxes/    TextMate grammar (.tmLanguage.json)
│   │   ├── snippets/    Code snippets (wcc.json)
│   │   └── icons/       Extension and file icons
│   └── server/          Volar Language Server
│       └── src/
│           ├── languagePlugin.ts        Volar plugin (WccCode, virtual codes)
│           ├── templateExpressionParser.ts  Template expression extraction
│           └── wccParser.ts             SFC block parser with offsets
├── package.json         Extension manifest
└── tsconfig.base.json   Shared TS config

Development

# Install dependencies
npm install

# Build
npm run build

# Launch Extension Development Host
# Open vscode-wcc/ in VS Code → press F5

Publishing

# Package as VSIX
npx vsce package

# Publish to Marketplace
npx vsce publish

Links

  • wcCompiler Documentation
  • Playground
  • VS Code Marketplace
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft