A lightweight and modern JavaFX desktop application for managing code snippets.
This app helps developers organize, search, and reuse their snippets with a clean and professional UI.
CodeSnippetManager - Purpose & Benefits
CodeSnippetManager is a desktop application designed to help developers manage, search, and share code snippets easily. It allows you to:
- Save useful code snippets for future reference.
- Organize snippets by project, file, and function name.
- Quickly search through your projects to find specific functions or methods.
- Instantly create GitHub gists from selected snippets to share with others.
-
Faster Development
- Instead of rewriting common functions or digging through old projects, you can quickly find and reuse existing snippets.
-
Knowledge Sharing
- Share useful functions or utilities with your team, community, or friends by creating a GitHub gist directly from the app.
-
Centralized Snippet Storage
- Keep all your frequently used functions and snippets organized in one place, searchable by keyword.
-
Saves Time & Prevents Errors
- No more copy-paste mistakes or forgetting linked code when sharing snippets — the tool helps extract and package complete functions.
- Individual developers who want to keep a personal snippet library.
- Teams who frequently share code snippets across projects.
- Open-source contributors who want to quickly create gists for bug fixes, utilities, or documentation.
CodeSnippetManager is your personal code library + gist generator, making it easier to organize, find, and share code across all your projects.
- Add, Edit, Delete Snippets – Quickly manage your personal library of code snippets.
- Search & Filter – Find snippets by title, language, description, or tags.
- Function Extraction – Automatically detect and store functions from source files.
- Snippet Details – View metadata such as creation and last modified date.
- Preview Pane – Display snippets in a monospaced font for easy reading.
- Persistence – Snippets are automatically saved locally on exit and reloaded on startup.
- Import/Export – Backup or share your snippet collection with others.
- GitHub Gist Integration – Instantly create gists from your snippets, with the URL copied to your clipboard for easy sharing.
- Clone or download the repository.
- Build with Gradle or Maven (or compile manually):
javac -d out src/manager/*.java
- Run the application:
java -cp out manager.CodeSnippetManagerFX
manager/CodeSnippetManagerFX.java
– Main application entry point (JavaFX UI).manager/CodeParser.java
– Handles function and snippet extraction.manager/GistService.java
– GitHub Gist integration.snippets.dat
– Local storage file for snippets (auto-created on exit).
- Java 11+ (JavaFX requires at least Java 11; Java 20 recommended).
- Internet connection (for Gist creation).
- Syntax highlighting for supported languages.
- Categorization and tagging system improvements.
- Cloud sync support (Google Drive / Dropbox).
This project is licensed under the MIT License.
Feel free to use, modify, and distribute it.