Sinatech Thymeleaf Snippet
A VS Code extension providing useful code snippets for Thymeleaf and Spring Boot development at Sinatech.
Features
This extension provides the following code snippets for faster development:
Thymeleaf Templates
- thyPage - Basic Thymeleaf index page with Vue.js integration
- thyDemoPage - Thymeleaf demo page with controller data integration
- thyDemoModalPage - Thymeleaf page with modal integration
- thyModal - Blank Thymeleaf modal template
- thyDemoModal - Complete modal with data passing functionality
Spring Boot Components
- sprController - Basic Spring MVC Controller
- sprDemoController - Controller with Model attribute
- sprService - Spring Service class
- sprRepo - Spring Repository interface with JPA
- sprModel - JPA Entity model with Lombok
Usage
- Open a file with
.java extension for Spring Boot snippets
- Open a file with
.html extension for Thymeleaf snippets
- Type the snippet prefix (e.g.,
thyPage , sprController ) and press Tab or Enter
- Fill in the placeholder values as prompted
Requirements
- VS Code version 1.103.0 or higher
- Java files for Spring Boot snippets
- HTML files for Thymeleaf snippets
Installation
For Colleagues (Private Distribution)
- Download the
.vsix file
- In VS Code, go to Extensions (Ctrl+Shift+X)
- Click the "..." menu and select "Install from VSIX..."
- Choose the downloaded
.vsix file
- Restart VS Code
Snippet Examples
Thymeleaf Page
Type thyPage to create a basic Thymeleaf page with Vue.js integration.
Spring Controller
Type sprController to create a Spring MVC controller with basic structure.
Version History
0.0.1
- Initial release with 10 essential snippets
- Thymeleaf templates with Vue.js integration
- Spring Boot component templates
Support
For issues or suggestions, please contact the development team at Sinatech.
Enjoy coding with Sinatech Thymeleaf Snippet!
| |