📖 Chapter 2: How to Install DevSnips
DevSnips is lightweight and flexible — you don’t need heavy setup. Just decide how you’d like to bring the snippets into your project.
2.1 Clone from GitHub
The easiest way to start is by cloning the repository directly from GitHub:
git clone https://github.com/developer8sarthak/DevSnips.git
Once cloned, you can browse to the /snippets folder and copy any code you need. Or directly explore categories here:
2.2 Manual Download
If you don’t want to use Git, you can download the repository as a ZIP file:
- Go to the DevSnips GitHub page.
- Click the green Code button → select Download ZIP.
- Unzip it and start exploring the snippets inside.
2.3 Copy-Paste Approach
You can also directly copy a snippet from the docs site and paste it into your project. This is perfect for quick one-off use cases.
2.4 Organizing in Your Project
To make your workflow smooth, create a dedicated /snippets folder in your project and store your copied snippets there. This ensures your project remains clean and organized.
Tip: Keep snippets modular so you can replace or upgrade them without touching the rest of your project.