Datadog acquired Codiga. This repository is no longer active.
This repository is for code-snippets.dev website, a collection of resources for user to manage code snippets. By defining reusable code blocks you can import in your IDE, you not only improve your productivity but you also make sure you always import the correct code and are not missing anything (e.g. missing argument, not checking error code or exceptions).
This website is maintained by Codiga.
Codiga provides multiple code snippets managers:
- VS Code Code Snippets Manager
- JetBrains Code Snippets Manager
- Chrome Extension for Code Snippets
- Code Snippets Manager for Windows, Mac OS and Linux
When using code snippets for yourself, you make sure you define code once and reuse it correctly in other codebases. It guarantees you are not missing an argument or an error case.When sharing code snippets in a team, it ensures that the team is using the same code consistently. By having a library of code snippets shared with your team, you ensure that your team is always using safe, vetted code patterns in all your code base.
code-snippets.dev surfaces snippets from the Codiga platform. If you want to add snippets to the search engine, add more snippets on the Codiga platform.
All Snippets are being also surfaced on the Codiga Hub.
The website is totally open and you can open a pull request if you want to add more features.
This is a Next.js project bootstrapped with create-next-app
.
First, run the development server:
npm run dev
# or
yarn dev
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying pages/index.tsx
. The page auto-updates as you edit the file.
API routes can be accessed on http://localhost:3000/api/hello. This endpoint can be edited in pages/api/hello.ts
.
The pages/api
directory is mapped to /api/*
. Files in this directory are treated as API routes instead of React pages.
- Found any bug, please create a new issue before working on the solution.