CodeExpander Pro × AI: Use Case Library
Ready-to-use templates and real-world scenarios
Document index · AI & Productivity
Contents
- AI prompt templates
- Code snippet library
- Screenshot workflow
- Clipboard scenarios
- Automation scripts
- Cross-project reuse
AI Prompt Templates
Code generation
Use FillIn: %fillmenu% for language, %fillarea% for requirements, %fillcheck% for options (comments, tests, best practices). Example abbreviation ai-gen; in ChatGPT/Claude type ai-gen + Tab → form → full prompt.
Test case generation
%cv% inserts clipboard; copy code then trigger e.g. ai-test with %fillmenu% for framework (Jest, Pytest, etc.).
Code review prompts
Use %cv% to paste code, %fillcheck% for review dimensions. See FillIn variables.
Doc generation
README/API doc generators: %filltext%, %fillarea%, %fillmenu% for project name, type, language, description.
Code Snippet Library
Error handling
Python (e.g. try-py): try/except with %c% for body. JavaScript: try/catch + %c%.
Logging, tests, API routes
Structured log: %filltext% message, %fillmenu% level, %c% for extra. Jest/Pytest: describe + test, %filltext% name. Express/FastAPI: %fillmenu% method, %filltext% path.
Screenshot Workflow
Bug reports
Shortcut → select region → rectangle, arrows, text → copy → paste to Issue/Jira.
Docs
Capture code or UI → gradient + rounded corners + shadow → numbered circles + highlight → copy or save.
Code comparison
Scroll capture Before/After; Pin Before, highlight After in green/yellow.
Clipboard Scenarios
- AI reply history: Copies go to history; search in clipboard window and paste; favorite important replies.
- Snippet from clipboard: Copy code → clipboard window → “Create snippet” → abbreviation and group → reuse and sync.
- Multi-step paste: Batch copy config; paste in order from clipboard (env vars, forms, migration).
Automation Scripts
Git (Shell / JS)
Quick commit: git add . + commit -m “%filltext&name=message%” + push. Feature branch: %filltext% type and name. Status: JS snippet with execSync(‘git status —short’).
Docker, scaffold, data
docker-clean (prune); init-node/init-python (mkdir + package manager + .gitignore); json-format with %cv% or {{clipboard}} → JSON.stringify(parsed, null, 2).
Cross-Project Reuse
Groups: e.g. ProjectA (prefix pa-), ProjectB (pb-), Common (no prefix). ExpandIn: Limit by app or directory. Microservices: one group per service (us-dev, os-dev), shared scripts (k8s-status, k8s-logs) in Common.
Efficiency Comparison
| Task | Traditional | CodeExpander | Gain |
|---|---|---|---|
| Complex prompt | 2–3 min | ~10 s | ↑ ~92% |
| Snippet reuse | 1 min | ~2 s | ↑ ~98% |
| Bug screenshot | 2 min (multiple tools) | ~20 s | ↑ ~83% |
| Find past reply | 3 min | ~5 s | ↑ ~97% |
| Run common script | 30 s | ~3 s | ↑ ~90% |
More syntax: FillIn variables, Settings.
Last updated: 2026-01-29