Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Nette Latte templatesNew to Visual Studio Code? Get it now.
Nette Latte templates

Nette Latte templates

Premysl Karbula

|
948 installs
| (0) | Free
Support for Nette Latte template files.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Nette Latte extension for VS Code ☕

VS Code extension for Nette Latte template files.

VS Code Marketplace Downloads VS Code Marketplace Installs

Installation

Open and install via VS Code Marketplace: Nette Latte templates.

Provides

  • Syntax highlight in Latte files.
  • Class-based declaration of template variables via Latte tag {templateType My\Lovely\Type}.
    • See Latte docs for detailed usage.
  • Go to variable definition for variables defined in Latte files.
  • Go to class definition of typed variables in Latte files.
    • obrazek
  • Go to method definition of methods called on typed variables in Latte files.
  • Go to referenced Latte files used in {include ...}, {layout ...}, {sandbox ...}, {extends ...} tags.
  • Hover information containing type of variables in Latte files.
  • Hover information containing return type of method calls in Latte files.
    • obrazek
  • Type inference of values coming from known method calls with known return types.
    • obrazek
  • Type resolution of basic iterables.
    • For example for {foreach $a as $b} where $a is of type array<MyType> we will know $b is of type MyType.
    • obrazek
  • Autocomplete support for $variables and $object->methodName() in Latte files.
    • obrazek

Types

The excentions supports resolving generic types for these basic iterable types:

  • array<V>
  • iterable<V>
  • \Iterator<V>
  • \IteratorAggregate<V>
  • \Traversable<V>
  • \Generator<V>
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft