Nette Latte extension for VS Code ☕
VS Code extension for Nette Latte template files.
Installation
Open and install via VS Code Marketplace: Nette Latte templates.
Provides
- Syntax highlight in Latte files.
- Goto variable definitions for variables defined in Latte files.
- Goto class definition of typed variables in Latte files.
- Goto method definition of methods called on typed variables in Latte files.
- Hover information containing type of variables in Latte files.
- Hover information containing return type of method calls in Latte files.
- 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 .
- Autocomplete support for
$variables and $object->methodName() in Latte files.
Types
The excentions supports resolving generic types for these basic iterable types:
array<V>
iterable<V>
\Iterator<V>
\IteratorAggregate<V>
\Traversable<V>
\Generator<V>
| |