CodebaseMD is a Visual Studio Code extension that allows you to export your entire codebase or selected files as a Markdown file, making it easier to share and document your projects.
- Updated Logo & Banner: Fresh new look with modern logo and banner design
- Consistent Branding: Improved visual identity throughout documentation and marketplace
Check the full release notes for more details on the updates.
- Enhanced Micro Export Format: Improved code structure analysis with detection of class properties, methods, and function patterns
- Automatic Flow Detection: Identify code flow patterns (async/await, try/catch, conditionals)
- Improved Component Representation: Detailed component visualization with visibility indicators and type annotations
- Comprehensive Test Suite: Added extensive test framework with Mocha to ensure reliability
- Improved File Handling: Better support for different file types and programming languages
- Enhanced Markdown Generation: Better clarity and organization in exported markdown documents
- Fixed issues with file type detection and language mapping
- Resolved edge cases in folder structure generation
- Enhanced error handling throughout the codebase
- Improved extraction of file metadata
- Fixed pattern detection for different programming paradigms
Check the full release notesfor more details or view our detailed documentation on the Micro Export format.
- 1-Click Export Entire Codebase as Markdown: Export your entire project into a single markdown file with the folder structure and code files included.
- Exclude Unnecessary Files Automatically: Automatically excludes files and folders like those in
.gitignore
,node_modules
,build
,out
, and large files such aspackage-lock.json
. - Export Selected Files: Right-click on selected files or folders and export only those to Markdown.
- Markdown Compatible Output: Only actively coded files with supported extensions (e.g.,
.js
,.ts
,.py
,.html
, etc.) are included with their contents, while unsupported files are listed with their names and paths. - Micro Export Format (New in v2.0): Generate condensed representations of your code with intelligent structure analysis, code flow detection, and design pattern recognition. Learn more.
You can install CodebaseMD directly from the Visual Studio Marketplace.
- Download the
.vsix
file from the releases section. - Open VS Code.
- Go to Extensions (
Ctrl+Shift+X
orCmd+Shift+X
on macOS). - Click on the three dots in the top-right corner, then choose Install from VSIX.
- Select the downloaded
.vsix
file.
- Open the Command Palette (
Ctrl+Shift+P
orCmd+Shift+P
). - Search for and run the command Export Codebase as Markdown.
- In the Explorer view, select multiple files or folders.
- Right-click and choose Export Selected as Markdown.
- Open the Command Palette (
Ctrl+Shift+P
orCmd+Shift+P
). - Search for and run the command Export Micro Codebase.
- Alternatively, right-click on files or folders and choose Export Selected as Micro Codebase.
The exported markdown file will have:
- Project Statistics: Total number of files exported.
- Folder Structure: A tree-like structure of your project.
- Code Files: Each file's contents enclosed in a code block with proper syntax highlighting.
- Unsupported Files: Unsupported file types will be listed with their file paths but not their contents.
Contributions are welcome! Feel free to open issues, submit pull requests, or suggest new features.
This project is licensed under the MIT License. See the LICENSE file for details.
- Alphin Tom
- Email: alphinctom@gmail.com
- GitHub: alpha912