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

ESPCompose Language Support

ESPCompose

|
3 installs
| (0) | Free
Syntax highlighting for inline C++ in ESPCompose lambda tagged templates
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

ESPCompose Language Support

Syntax highlighting for inline C++ inside ESPCompose lambda tagged template literals.

Features

  • C++ syntax highlighting inside lambda`...` tagged templates in .ts and .tsx files
  • Proper handling of ${...} template substitutions (highlighted as TypeScript)
  • Recognition of ESPHome APIs (id(), ESP_LOG*), LVGL functions, C++ keywords, types, operators, strings, comments, and numeric literals

Usage

Install the extension and open any ESPCompose project. Inline C++ in lambda tagged templates is highlighted automatically:

import { lambda, useRef } from '@espcompose/core';

<binary_sensor
  platform="gpio" pin={4} name="Button"
  onPress={async () => {
    lambda`id(${lightRef}).turn_on().set_brightness(0.75).perform();`;
  }}
/>

Requirements

  • VS Code 1.75+
  • Works alongside any TypeScript/TSX language support

License

MIT — see the ESPCompose repository for details.

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