Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to copy error out to clipboard from IntelliJ

I am seeing an error in this yellow box in IntelliJ. How to copy it out to system clipboard?

enter image description here

In Eclipse, there is a good way of doing so. How to do this in IntelliJ?

like image 678
Qiang Li Avatar asked Dec 24 '13 22:12

Qiang Li


People also ask

How do I copy and paste in IntelliJ?

Set the caret anywhere in the line to copy the whole line, or make a selection to copy. Press Ctrl+C or choose Edit | Copy from the main menu .

How do I copy an entire line in IntelliJ?

Press Ctrl+D or choose Edit | Duplicate Line or Selection from the main menu .

How do I select a line in IntelliJ?

Simply hit ctrl+c. Note that for this to select the whole line, you need to ensure that nothing is already selected; otherwise it'll work as an usual "copy" command.


2 Answers

The following approach works for me on Windows 8.1 and IDEA 14.1:

Move the caret to the error location. The error message appears on the left side of the status bar below. Right-click the error message - a context menu containing a command "Copy" appears. Select the command "Copy". Voila, the error message is in the clipboard.

Context menu

like image 161
Vladimir Reshetnikov Avatar answered Sep 29 '22 08:09

Vladimir Reshetnikov


UPDATE for newer versions of Idea family (works for me in Webstorm 2019.3 in Ubuntu 18.04.3): just select the error text inside the bubble and press Ctrl+C. Thank you, Jetbrains.


Long-awaited solution for Linux version: press Ctrl+Alt+left mouse button on the tooltip - and you've got it in your clipboard :)

The solution doesn't seem to be documented anywhere (correct me if I'm wrong), although it works nice.

like image 34
grreeenn Avatar answered Sep 29 '22 08:09

grreeenn