Smart snippets and automatic formatting for Unity UI Toolkit (UXML & USS)

Streamline your Unity UI Toolkit development workflow with intelligent code formatting and comprehensive snippets for UXML and USS files.
✨ Features
- UXML Formatter: Clean and properly indent your Unity UI Toolkit XML files
- USS Formatter: Format Unity Style Sheets with consistent spacing and structure
- Format on Save: Optional automatic formatting when you save files
- Customizable Indentation: Configure tab size and spacing preferences
⚡ Smart Snippets
UXML Snippets (20+ components)
Quickly insert UI elements with intelligent placeholders:
uxml-template - Complete UXML file template
ve - VisualElement
button - Button
label - Label
textfield - TextField
toggle - Toggle
slider - Slider
scrollview - ScrollView
listview - ListView
image - Image
dropdown - DropdownField
foldout - Foldout
groupbox - GroupBox
radio - RadioButton
radiogroup - RadioButtonGroup
vec2 - Vector2Field
vec3 - Vector3Field
color - ColorField
progress - ProgressBar
- And many more...
USS Snippets (40+ properties)
Accelerate styling with ready-to-use USS properties:
class - Class selector
name - Name selector (#)
type - Type selector
flex-direction - Flex direction with options
align-items - Align items with options
justify-content - Justify content with options
bg-color - Background color
bg-image - Background image
width / height - Dimensions
margin / padding - Spacing
border - Border properties
position - Positioning
- And many more...
🤝 Contributing
Contributions are greatly appreciated. Please fork the repository and submit a pull request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature)
- Commit your changes (
git commit -m 'Add some AmazingFeature')
- Push to the branch (
git push origin feature/AmazingFeature)
- Open a Pull Request
Enjoy faster Unity UI Toolkit development! 🚀
| |