Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Symfony Twig Template GeneratorNew to Visual Studio Code? Get it now.
Symfony Twig Template Generator

Symfony Twig Template Generator

titibemo

|
3 installs
| (1) | Free
Create Twig pages for Symfony projects
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Symfony Twig Template Generator

Generate Twig templates instantly in Symfony projects with automatic folder creation and ready-to-use base layout.

Demo

Features

  • Quickly create Twig templates from a path (e.g. starship/show)
  • Automatically generates the folder structure inside templates/
  • Inserts a ready-to-use Symfony Twig boilerplate
  • Works from editor selection or command palette
  • Optional automatic opening of the created file (configurable)

Usage

Method 1: Command Palette

  1. Open VS Code
  2. Press Ctrl + Shift + P
  3. Run: Create Twig Template
  4. Enter your Twig path (e.g. starship/show)

Method 2: Right-click (recommended)

  • Select a Twig path in the editor (e.g. starship/show)
  • Right click
  • Click Generate Twig Template

Output example

Input: starship/show Generated file : templates/starship/show.html.twig

With content:

{% extends 'base.html.twig' %}

{% block body %}

{% endblock %}

Settings

This extension provides configurable options:

symfonyTwigTemplateGenerator.openDirectly

Controls whether the created file is automatically opened after generation.

Value Behavior
true (default) Automatically opens the created Twig file
false Creates the file silently without opening it

Why use it?

This extension removes repetitive manual work when creating Twig templates in Symfony projects by automating:

  • Folder creation
  • File creation
  • Base layout setup
  • Optional file opening control

Ideal for

  • Symfony developers
  • Twig-based projects
  • Developers who want faster template scaffolding

Requirements

  • Visual Studio Code ^1.85.0
  • Symfony project using Twig

Extension Command

Generate Twig Template

Authors

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