Enhance your coding efficiency with Khataa. This VS Code extension streamlines error management by providing a 'Copy' button alongside code errors for quick clipboard access, saving time and reducing hassle.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Khataa (Arabic for "error") is a powerful Visual Studio Code extension designed to streamline error management and boost your coding productivity. Whether you're debugging complex issues or sharing error messages with your team, Khataa makes copying diagnostic information effortless and efficient.
✨ Features
🎯 Multiple Copy Methods
Single Error: Copy individual errors via hover or quick actions
Bulk Copy: Copy all errors or diagnostics in current file at once
Smart Formatting: Multiple copy formats to suit your needs
Context Menu: Right-click integration for easy access
📋 Flexible Copy Formats
Message Only: Copy just the error message
Message + Code: Include error codes for better context
Detailed Format: VS Code-style format with file location and structure (default)
Full Details: Complete diagnostic information including source and severity
🔄 Bulk Operations
Copy All Errors: Copy all errors in the current file with one command
Copy All Diagnostics: Copy errors, warnings, and info messages together
Structured Output: Each diagnostic separated with clear dividers
⚙️ Customizable Settings
Enable/Disable: Toggle functionality on/off
Copy Format: Choose your preferred copy format
Notifications: Control success notifications
🌍 Universal Support
Works with all programming languages
Supports all error types: Errors, Warnings, Information, Hints
Compatible with any VS Code language extension
Requirements
Khataa requires Visual Studio Code 1.88.0 or newer. Ensure your development environment meets this requirement to use Khataa effectively.
Installation
Install Khataa directly from the Visual Studio Code Marketplace:
Open the Extensions sidebar in Visual Studio Code.
Search for "Khataa".
Click Install.
Enjoy enhanced error management!
Alternatively, you can download and install the extension via the .vsix file from the releases section of our GitHub repository.
⚙️ Extension Settings
Customize Khataa to fit your workflow:
Setting
Type
Default
Description
khataa.enable
boolean
true
Enable/disable Khataa functionality
khataa.copyFormat
string
"detailed"
Copy format: "message", "messageWithCode", "detailed", or "full"
Khataa provides two convenient ways to copy error messages:
📹 Demo Video
Watch Khataa in action!
🎯 Method 1: Enhanced Hover (Recommended)
Hover over any error/warning in your code
Click the "📋 Copy Error Message" button in the enhanced tooltip
Done! The error is copied to your clipboard
⚡ Method 2: Quick Actions
Right-click on any error/warning
Select "📋 Copy Error Message" from the context menu
Done! The error is copied to your clipboard
🔄 Method 3: Bulk Copy (New!)
Command Palette (Ctrl/Cmd + Shift + P)
Type "Copy All Errors" or "Copy All Diagnostics"
Select the command to copy all issues in the current file
Alternative: Right-click in editor → "📋 Copy All Errors in File"
📋 Copy Format Examples
Detailed Format (default - matches your example):
Type 'Vehicle[]' is not assignable to type 'number'.ts(2322)
index.ts(140, 3): Type 'Vehicle[]' is not assignable to type 'number'
❌ Type 'Vehicle[]' is not assignable to type 'number'
Code: 2322
Source: ts
Message + Code Format:
Type 'Vehicle[]' is not assignable to type 'number' (2322)
Full Format:
❌ Type 'Vehicle[]' is not assignable to type 'number'
Code: 2322
Source: ts
Location: index.ts(140, 3)
💡 Pro Tips
Bulk operations: Use "Copy All Errors" to get all errors at once, separated by dividers
Different formats: Change khataa.copyFormat to get the exact format you need
Silent mode: Disable khataa.showNotification for no popup notifications
Works everywhere: Compatible with TypeScript, Python, JavaScript, Rust, and any language with VS Code support
⚙️ Configuration Settings: Fully customizable copy formats and notifications
🎯 Multiple Copy Formats: Message-only, with codes, or full diagnostic details
🚀 Performance Optimizations: Faster activation and reduced memory usage
📋 Improved Code Actions: Better integration with VS Code's Quick Fix menu
🌍 Universal Language Support: Works with all programming languages
🧹 Codebase Cleanup: Removed unused code and optimized package size
1.1.1
Updated documentation and improved marketplace presentation
1.1.0
New professional icon design
Enhanced documentation with video demonstrations
1.0.2
Minor bug fixes and performance improvements
1.0.0
Initial release with basic error copying functionality
Contributing
We welcome contributions to Khataa! If you have suggestions or issues, please feel free to open an issue or submit a pull request on our GitHub repository.
License
Khataa is released under the MIT License. See the LICENSE file for more details.