Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Find code snippets in seconds, across multiple languages.

NotificationsYou must be signed in to change notification settings

quicksnip-dev/quicksnip

Repository files navigation

An open-source project that categorizes handy code snippets across various programming languages. Built with love and powered by an awesome community. 🚀

Watch on YouTube

Website preview

How to contribute

Want to help make QuickSnip even better? You can contribute by:

  • Improving the Code: Fix bugs, suggest new features, or optimize the project.
  • Adding New Snippets: Share your favorite snippets to grow the database.

Be sure to check out theCONTRIBUTING.md file for detailed guidelines.

Improving the code

Got a feature idea or bug fix? Here's how you can contribute:

Adding a Snippet

The snippets database is located in the/snippets folder.

  1. Find the relevant language folder.

  2. Locate the appropriate category folder for your snippet.

  3. Create a markdown file and add your snippet using the following format:

---title:Name of the snippetdescription:A short explanation of what the snippet doestags:tag1, tag2, tag3author:your-github-username---```lang// Your code here```

Here's an example for #"auto" data-snippet-clipboard-copy-content="---title: Format Datedescription: Formats a date in 'YYYY-MM-DD' format.author: dostonnabotovtags: javascript,date,format---```jsconst formatDate = (date) => date.toISOString().split('T')[0];// Usage:console.log(formatDate(new Date())); // Output: '2024-12-10'```">

---title:Format Datedescription:Formats a date in 'YYYY-MM-DD' format.author:dostonnabotovtags:javascript,date,format---```jsconstformatDate= (date)=>date.toISOString().split('T')[0];// Usage:console.log(formatDate(newDate()));// Output: '2024-12-10'```

Expected file structure:

/snippets    |- language        |- category-name            |- your-snippet-here.md

For more details about adding new categories or programming languages, check out theCONTRIBUTING.md file.

Guidelines for Contributions

To keep things smooth and consistent, please:

  • Follow the formatting rules described above.
  • Include all mandatory fields in the snippet.
  • Test your snippet to ensure it works as expected.

Following these guidelines helps me (and everyone else) review and merge your contributions faster.

License

QuickSnip is licensed under theMIT License. Feel free to use and share it as you like.

Leave a Review

About

Find code snippets in seconds, across multiple languages.

Topics

Resources

Contributing

Stars

Watchers

Forks

Contributors67

Languages


[8]ページ先頭

©2009-2025 Movatter.jp