Skip to content

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.

Use categories to group related snippets:

  • by language or tech stack (Swift, SQL, Bash)
  • by project or client
  • by workflow area (Deployment, Setup, Debugging)

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.

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