💻 Programmierung & Entwicklung

Code Snippet Manager

📁 Programmierung & Entwicklung 👤 Beigetragen von @f 🗓️ Aktualisiert
Der Prompt
Build a developer-focused code snippet manager using HTML5, CSS3, and JavaScript. Create a clean IDE-like interface with syntax highlighting for 30+ programming languages. Implement a tagging and categorization system for organizing snippets. Add a powerful search function with support for regex and filtering by language/tags. Include code editing with line numbers, indentation guides, and bracket matching. Support public/private visibility settings for each snippet. Implement export/import functionality in JSON and Gist formats. Add keyboard shortcuts for common operations. Create a responsive design that works well on all devices. Include automatic saving with version history. Add copy-to-clipboard functionality with syntax formatting preservation.

Beispiel-Ausgaben

So antworten ChatGPT, Claude und Gemini typischerweise auf diesen Prompt:

🚀 ChatGPT

I'll help you build a comprehensive code snippet manager! Let's start with the HTML structure featuring a split-panel layout with a sidebar for snippet navigation and a main editor area. For syntax highlighting, we'll integrate Prism.js or Highlight.js to support 30+ languages. The search functionality will use a combination of regex matching and filter dropdowns for tags/languages. I'll implement localStorage for auto-saving with a version history array, and use the Clipboard API for copy functionality that preserves formatting.

✨ Claude

This is an ambitious project that combines several complex features. I'd recommend breaking it into phases: start with core editing and syntax highlighting (using a library like CodeMirror or Monaco Editor, which provide built-in language support and features like line numbers), then layer on the organizational features (tagging, search), and finally add the sync/export capabilities. The version history and auto-save will require careful state management—consider using IndexedDB rather than localStorage for better performance with larger snippets.

💎 Gemini

A robust code snippet manager requiresintegrating established libraries for efficiency. Use Monaco Editor (powers VS Code) or CodeMirror for syntax highlighting across 30+ languages with built-in line numbers and bracket matching. Implement search using JavaScript's RegExp constructor for regex support, combined with Array.filter() for tag/language filtering. For persistence, leverage IndexedDB API for local storage with version tracking, and GitHub's Gist API for import/export. The Clipboard API's writeText() method handles copy functionality while maintaining code formatting.

So nutzt du diesen Prompt

Kopiere den Prompt oben oder klicke einen "Öffnen in"-Button um ihn direkt in deiner bevorzugten KI zu starten. Du kannst den Text dann an deinen Anwendungsfall anpassen — z.B. Platzhalter wie [dein Thema] durch echten Kontext ersetzen.

Welches KI-Modell funktioniert am besten

Claude Opus 4 und Sonnet 4.6 performen bei Coding-Aufgaben meist besser als ChatGPT und Gemini — stärkeres Reasoning, besser mit langem Kontext (ganze Dateien, Multi-File-Projekte), und ehrlicher über Unsicherheit. ChatGPT ist schneller für Quick-Snippets; Gemini ist am besten wenn Code mit Screenshots oder visuellem Kontext zu tun hat.

Diesen Prompt anpassen

Tausche die im Prompt erwähnte Sprache (Python, JavaScript, etc.) gegen deinen Stack. Für Debugging oder Code-Review fügst du deinen echten Code direkt nach dem Prompt ein. Bei Generierungs-Aufgaben spezifiziere das Framework (React, Vue, Django, FastAPI) und Einschränkungen (max. Zeilen, keine externen Libraries, muss async sein).

Typische Anwendungsfälle

  • Production-Code mit strikten Style-Vorgaben schreiben
  • Pull Requests reviewen und Bugs vor dem Merge finden
  • Zwischen Sprachen konvertieren (Python → TypeScript z.B.)
  • Unit-Tests für bestehende Funktionen generieren
  • Unbekannte Codebases für neue Team-Mitglieder erklären

Variationen

Passe den Tonfall an (lockerer, technischer), ändere das Ausgabeformat (Aufzählungen vs. Absätze) oder füge Einschränkungen hinzu (Wortlimits, Zielgruppe).

Verwandte Prompts