Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>copy-problem-messageNew to Visual Studio Code? Get it now.
copy-problem-message

copy-problem-message

mythias

|
6 installs
| (0) | Free
copy problem message
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Copy Problem Message for VS Code

Quickly copy diagnostic messages (errors, warnings, info) from your code editor directly to your clipboard, with options for basic or detailed information. Indispensable for quickly sharing issues, searching online, or documenting problems.

Features

  • Copy Basic Problem Message: Instantly copy the plain diagnostic message at your cursor.
  • Copy Detailed Problem Message: Copy the message along with its source (e.g., eslint, typescript) and the specific rule or code (e.g., no-unused-vars, ts2322).
  • Command Palette Integration: Easily access commands through the VS Code Command Palette.
  • Lightweight: No unnecessary overhead, focused on a simple task.

Requirements

  • Visual Studio Code version ^1.80.0 (or your specified minimum version from package.json).

How to Use

  1. Place your cursor on or within the highlighted range of a problem (error, warning, etc.) in your code.

  2. Open the Command Palette (Ctrl+Shift+P on Windows/Linux, Cmd+Shift+P on macOS).

  3. Type one of the following commands:

    • Copy Problem Message at Cursor

      • Action: Copies only the primary descriptive message of the diagnostic.

      • Example Output (copied to clipboard):

        'myVar' is assigned a value but never used.
        
    • Copy Problem Message with Details

      • Action: Copies the diagnostic message along with its source and code/rule ID.

      • Format: Message source(code) (or similar variations if some parts are missing).

      • Example Output (copied to clipboard):

        'myVar' is assigned a value but never used. eslint(no-unused-vars)
        

        Or for a TypeScript error:

        Type 'string' is not assignable to type 'number'. typescript(ts2322)
        

        And based on your example:

        No magic number: 20 eslint(no-magic-numbers)
        

Keyboard Shortcuts

This extension does not assign default keyboard shortcuts to its commands to avoid conflicts with existing user configurations or other extensions.

You can easily set your own custom keyboard shortcuts:

  1. Open the Keyboard Shortcuts editor (File > Preferences > Keyboard Shortcuts, or Ctrl+K Ctrl+S / Cmd+K Cmd+S).
  2. Search for the command names:
    • Copy Problem Message at Cursor
    • Copy Problem Message with Details
  3. Click the '+' icon next to the command and enter your desired keybinding.

Extension Settings

This extension does not currently have any specific settings to configure. Future versions may include options for customizing the output format of detailed messages.

Known Issues

  • No known issues at this time. Please report any bugs or feature requests on the GitHub repository issues page.

Release Notes

See the CHANGELOG.md file for detailed release history. This changelog is automatically generated by release-please based on conventional commit messages.

License

This extension is licensed under the MIT License.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft