Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>PHP TwigNew to Visual Studio Code? Get it now.
PHP Twig

PHP Twig

Ramkumar Ramachandra

|
22,478 installs
| (2) | Free
Syntax highlighting and formatting
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

vstwig

Includes syntax highlighting for the Twig language, and an opinionated formatter that actually works. The formatter formats a document containing HTML tags, {{ ... }}, and {% [block] %} ... {% end[block] %}, leaving the code between <style>...</style> and <script>...</script> untouched. There are no configuration options, and the formatter respects the current VSCode configuration.

Before: Before

After: After

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