MVC Snippet Pack
A powerful and reusable snippet collection for ASP.NET MVC developers to speed up development inside Visual Studio Code.
This extension provides ready-to-use boilerplate code for Controllers, Models, Views, Repositories, Layouts, and more.
🚀 Features
- 🔐 Login & Register View snippets
- 🧾 Edit Profile & Unauthorized View
- 🎮 Controllers (Account, Admin, Home, User)
- 🗂 Repository layer snippets
- 🧠 Model classes (User, Login)
- 🧱 Layout & User Layout templates
- 🎨 Site CSS & UI utilities
- ⚡ Kendo UI helper snippets
- 🔍 Filter & reusable logic snippets
🧩 Included Snippets
📄 Views
loginview → Login Page UI
registerview → Register Page UI
editprofileview → Edit Profile Page
unauthorizedview → Unauthorized Access Page
layout → Main Layout
userlayout → User Dashboard Layout
🎮 Controllers
accountcontroller → Account Controller
admincontroller → Admin Controller
homecontroller → Home Controller
usercontroller → User Controller
🧠 Models
usermodel → User Model
loginmodel → Login Model
🗂 Repositories
accountrepo → Account Repository
userrepo → User Repository
⚙️ Utilities (Global)
filter → Filter logic
allkendo → Kendo UI setup
sitecss → Base CSS template
⚡ Usage
- Install the extension
- Open any file in your project
- Start typing a snippet prefix
- Press
Enter or Tab
Example:
loginview
➡ Automatically generates a complete login page.
🌍 Global Snippets
All snippets are configured as global, so they work in:
.cs
.cshtml
.html
.js
.txt
- Any file type
🛠 Requirements
- Visual Studio Code (latest version recommended)
📦 Installation
From VSIX (Manual)
- Open Extensions in VS Code
- Click
... (top right)
- Select Install from VSIX
- Choose your
.vsix file
🔧 Extension Settings
This extension does not require any additional configuration.
🐛 Known Issues
- Since snippets are global, suggestions may appear in all file types
- Use specific prefixes (like
mvc-) if needed to avoid clutter
💡 Best Practices
🤝 Contributing
Feel free to contribute by adding more useful MVC snippets or improving existing ones.
📄 License
This project is licensed under the MIT License.
👨💻 Author
Developed for ASP.NET MVC developers to boost productivity and reduce repetitive coding.
⭐ Support
If you find this extension useful:
- ⭐ Star the project
- 📢 Share with others
- 🛠 Contribute improvements