The xtemplate-block extension is designed to enhance your Visual Studio Code experience by providing powerful tools for working with XTemplate files. This extension streamlines your workflow and boosts productivity when dealing with XTemplate-based projects.
Features
Provide Language Symbols: Provide language symbols based on parsed blocknames of BEGIN-END.
Shrink/Expand: Shrink/Expand your xtemplate markup block.
Hover for path: Hover on the BEGIN/END tag, a path from the root tag will be shown up.
Requirements
For Linked Editing feature to work, you have to enable this setting in VSCode:
"editor.linkedEditing": true
For the projects that use different file extensions as HTML, for example .tpl, please add this setting to VSCode:
"files.associations": {
"*.tpl": "html",
}
Release Notes
1.1.0
NEW: Linked Editing feature - automatically sync block name changes between BEGIN and END tags
Supports nested blocks with accurate matching
Case-insensitive matching
Real-time visual feedback
1.0.1
Add copy button to quickly copy the path of each block.
1.0.0
Initial release of xtemplate-block.
Added language symbols, folding ranges, and hover-to-see-path ability.
Following extension guidelines
Ensure that you've read through the extensions guidelines and follow the best practices for creating your extension.