OneClick-CP — One-click DSA & CP Starter KitA VS Code extension that sets up your coding sandbox in seconds, exports your solutions neatly, and gives you a growing snippets library — all without leaving the editor. ✨ Features🚀 Reset FilesQuickly reset the 3 standard files in your workspace:
Uses the selected template (see below). If any file is missing in the chosen template, a sensible default is used. 📤 Export SolutionSave your current 🔁 Export + ResetOne command to:
Perfect for quick problem switching. 💾 Custom TemplatesSave any combination of the three files as a reusable template.
📚 Snippets (Sidebar + Editor)A curated snippet library for C++, Python, and Java. (Only C++ snippets are implemented currently. custom snippets can still be created for other languages)
👉 Full list of built-in snippets is available here: 🧩 Arrange LayoutCloses all tabs and opens:
🧰 Commands & Shortcuts
🧪 How to Use
Shortcuts: • Ctrl + Alt + R → Reset Files • Snippets auto-trigger in editor using defined prefixes ⸻ 🙌 Support Development If you love this extension and want to support its development: • ☕ Buy me a coffee • UPI ID: bharath.kotipalli@pingpay • ⭐ Starring the repository • ⸻ 🛠️ Installation 1. Clone or download this repo 2. Run npm install 3. Run npm run compile 4. Launch extension via Run & Debug (F5) or package via vsce ⸻ 🤝 Contributing Pull requests, issue reports, and suggestions are always welcome! 1. Fork the repository 2. Make your changes 3. Submit a PR with a clear explanation Suggest a Snippet Feel free to contribute to the snippet JSONs inside snippets/ folder or open an issue with your idea. ⸻ 🧯 Troubleshooting • Sidebar looks empty / styling off → Ensure HTML/CSS files are bundled (we fixed a webpack omission in v0.1.1). • Snippet preview not visible → Make sure an editor is active; preview shows as faint inline text. • Nothing resets → Confirm a workspace is open and the three files exist (fallback will write them to your first workspace). • Exported files missing changes → We read from open editors first; if none open, we read from disk. 📝 Changelog See CHANGELOG.md. 👤 Author
“Created to make your CP journey smoother.” ⸻ 📃 License MIT © Bharath Kotipalli |