A VS Code extension that formats the problems list in a more readable Markdown format with code snippets, making it easier to share and document issues.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
A VS Code extension that formats the problems list in a more readable Markdown format with code snippets when you copy it, making it easier to share and document issues.
Copy Errors in a Nutshell
Ctrl + Shift + P
Features
Converts VS Code problems (errors, warnings, etc.) into a clean Markdown format
Includes code snippets with context lines around each problem
Displays the exact line with the problem
Multiple output formats (detailed, compact)
Optional emoji indicators for different severity levels
Summary statistics showing error/warning counts
Advanced filtering options (by severity, file pattern, or message content)
Export as HTML
Save problems directly to Markdown or HTML files
Shows function/class context for each problem when available
Identification of most problematic files in the codebase
Commands
The extension provides multiple commands in the Problems panel:
Copy Problems as Markdown: The standard format with code snippets
Copy Problems (Compact Format): A more concise format without code snippets
Copy Errors Only: Copy only errors (ignoring warnings, hints, and info)
Copy Problems with Custom Filter...: Interactive dialog to set custom filters
Copy Problems as HTML: Generate HTML output
Save Problems to File...: Save the problems report to a Markdown or HTML file
Status Bar Indicator
The extension adds a status bar item that shows the current count of errors and warnings in your workspace. Clicking the status bar item copies all problems as Markdown.
Usage
Open a project with some errors/warnings/problems in VS Code
Right-click in the "Problems" panel and select one of the commands
Paste the formatted Markdown into your document, issue tracker, or chat
You can also access these commands from the Command Palette (Ctrl+Shift+P or Cmd+Shift+P on macOS).
Interactive Filtering
The "Copy Problems with Custom Filter..." command allows you to:
Choose the output format (standard or compact)
Filter by severity (errors, warnings, etc.)
Filter by file pattern (e.g., ".ts", "src/.js")
Filter by message content (e.g., "undefined variable")
This is useful for focusing on specific types of problems in large codebases.
Example Output (In any Markdown-Render)
HTML Export
The HTML export feature generates a styled HTML, making it perfect for sharing via email or other HTML-compatible channels.
Extension Settings
This extension contributes the following settings:
bettererrorcopy.contextLines: Number of context lines before and after the problem (default: 4)
bettererrorcopy.groupByFile: Group problems by file (if false, group by severity) (default: true)
bettererrorcopy.addSummary: Add a summary section with problem counts (default: true)
bettererrorcopy.useEmoji: Use emoji icons for different severity levels (default: true)
bettererrorcopy.addTimestamp: Add a timestamp to the report (default: true)
bettererrorcopy.addSystemInfo: Add system information to the report (default: false)
0.0.2
Relativ paths instead absolute (in project folders)