A Visual Studio Code extension that provides handy code snippets for faster development with Frappe Framework and ERPNext.
Boost your productivity by quickly inserting common patterns, API calls, hooks, and other frequently used code blocks in your Frappe/ERPNext apps.
✨ Features
Prebuilt Frappe Snippets – Commands, DocTypes, API calls, and server scripts.
ERPNext Utilities – Frequently used business logic patterns.
Python, JavaScript, and Jinja Support – Context-aware snippets for multiple languages used in ERPNext apps.
📦 Installation
You can install this extension from the Visual Studio Marketplace.
From VS Code:
Open Extensions sidebar (Ctrl+Shift+X / Cmd+Shift+X on Mac).
Search for Frappe ERPNext Snippets.
Click Install.
From Command Line:
code --install-extension FrappeERPnextSnippets.frappe-erpnext-snippets
🚀 Usage
Open a .py, .js, or .html/.jinja file in VS Code.
Start typing the snippet prefix (e.g., frappe.get_doc, frappe.call) to trigger IntelliSense.
Press Tab or Enter to insert the snippet.
Example(Python)
🛠 Development
If you want to modify or add new snippets:
1. Clone this repo:
git clone https://github.com/ehsanjavaid/frappe-erpnext-snippets.git
2. Open in VS Code
3. Edit snippets/frappe.json to add/update snippets.
4. Build the .vsix file:
vsce package
🤝 Contributing
Pull requests are welcome!
If you’d like to improve or add new snippets:
Fork the repo
Create a new branch
Submit a PR
📬 Author
Developed by Ahsan Javaid
For questions or suggestions, feel free to open an issue.
---
If you want, I can also help you add badges, links, or improve the wording! Would you like me to?