Skip to content

OogleOG/CodeManager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CodeSnippet Manager

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

What does this program do?

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.

Why would you use it?

  1. Faster Development

    • Instead of rewriting common functions or digging through old projects, you can quickly find and reuse existing snippets.
  2. Knowledge Sharing

    • Share useful functions or utilities with your team, community, or friends by creating a GitHub gist directly from the app.
  3. Centralized Snippet Storage

    • Keep all your frequently used functions and snippets organized in one place, searchable by keyword.
  4. Saves Time & Prevents Errors

    • No more copy-paste mistakes or forgetting linked code when sharing snippets — the tool helps extract and package complete functions.

Who is it for?

  • 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.

In short:

CodeSnippetManager is your personal code library + gist generator, making it easier to organize, find, and share code across all your projects.

✨ Features

  • 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.

🚀 Usage

  1. Clone or download the repository.
  2. Build with Gradle or Maven (or compile manually):
    javac -d out src/manager/*.java
  3. Run the application:
    java -cp out manager.CodeSnippetManagerFX

📂 File Structure

  • 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).

🛠 Requirements

  • Java 11+ (JavaFX requires at least Java 11; Java 20 recommended).
  • Internet connection (for Gist creation).

📌 Roadmap

  • Syntax highlighting for supported languages.
  • Categorization and tagging system improvements.
  • Cloud sync support (Google Drive / Dropbox).

📜 License

This project is licensed under the MIT License.
Feel free to use, modify, and distribute it.

About

Never rewrite your code

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages