Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Template LensNew to Visual Studio Code? Get it now.
Template Lens

Template Lens

Ricardo Rocha

|
12 installs
| (0) | Free
Navigate into templates made easy
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Template-lens extension

A simple extension to use at work and make it easy to navigate inside templates. Everytime a javascript file is opened we will check for a res.render( line and show a clickable command above that line. Clicking it, will open the referrenced template in a new vscode file tab.

alt text

Notes

  • only works with expressjs templates
  • needs some config (check how to config below)

Configuration

{
  "template-lens": {
    "templatePath": "workspace/template/path/", // main src dir for your templates
    "fileExtension": ".html", // if not set will use .html as default
  }
}
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft