Categories
Categories
Section titled “Categories”Categories are the organisational structure in CodeShelf. Every snippet can belong to one category, and categories can be nested — so you can build a hierarchy that fits how you think.
What categories are for
Section titled “What categories are for”Use categories to group related snippets:
- by language or tech stack (Swift, SQL, Bash)
- by project or client
- by workflow area (Deployment, Setup, Debugging)
Nesting
Section titled “Nesting”Categories support a parent-child structure. A top-level “Backend” category can have children like “PostgreSQL”, “Redis”, and “Docker”. Snippets live in the leaf categories.
To add a child category, select a parent in the sidebar first, then create a new category — CodeShelf will offer to add it as a child of the current selection.
Snippet counts
Section titled “Snippet counts”The sidebar can show a count of snippets in each category. Toggle this in Settings → Show Category Counts.
- Keep top-level categories broad (language, domain, project)
- Use child categories for specifics
- If a snippet belongs in two places, put it where you’d look first
