How to save Quick Documentation from Database tool?
Answered
I am using IntelliJ IDEA 2021.2.3 (Ultimate Edition), the Database tool and pointing to a IBM z/OS DB2 table, when I do "Quick Documentation" while on the database / table node (e.g. Employee), I get a nice popup with relevant information, but unable to Save it, I have tried the Cut/Paste, CNTL+Q twice trick, or clicking on 3 dots on the bottom right corner and choosing "Open As Tools Window" or "Edit Source F4", does not allow copy/paste or any sort of saving, even when trying to select with mouse drag, the screen being displayed is not scrolling.
In general Quick Documentation, is not that valuable if it can not be saved.
Is this a bug?
Please sign in to leave a comment.
Could you please check if Alt+Left Mouse button click works for you?
I used CNTL+ Q on the table node, and then in the popup I used ALT+Left Mouse, and did not see any action triggers, I also selected the text with ALT+Left Mouse, and there is no way to Copy/Paste, also still the text displayed in popup does not scroll when mouse goes down in the screen and there is still data in the popup screen that can scroll with.
Correction, the ALT+Left Mouse used for selection than CNTL+C copies the content that is displayed but still if the content is larger than the popup screen there is no way to scroll and capture the full screen, why not add a option to the 3 dots, as copy to clipboard.
Alt+Click should copy all the contents of the Quick Documentation window.
OK, ALT+Click, did copy the content but there are 2 issues, first there was no visual cue to tell me something happened, second the table row information from something like (SELECT * FROM EMPLOYEE), lost their format and getting pasted like this.in a notepad file. I have tried it in Notepad++ document and it is the same thing.
First 10 rows:
ID
FIRSTNAME
LASTNAME
CREATED
UPDATED
1
Joe
Jack
2022-07-22 13:59:13.182515648
2022-07-22 09:59:13.182772
2
Joe
Jack
2022-07-22 14:20:29.330717001
2022-07-22 10:20:29.331284
it should look something like this (this is from Eclipse plugin)
ID FIRSTNAME LASTNAME CREATED UPDATED
-- --------- ----------- ----------------------------- --------------------------
1 Joe Jack 2022-07-22 09:59:13.182515648 2022-07-22 09:59:13.182772
2 Joe Jack 2022-07-22 10:20:29.330717001 2022-07-22 10:20:29.331284
By the way, copy action is available in https://www.jetbrains.com/idea/nextversion/, see https://youtrack.jetbrains.com/issue/IDEA-269443/Provide-Copy-action-in-the-context-menu-of-the-Quick-Documentation-popuptool-window.
As for the format of the copied text, please submit a bug at https://youtrack.jetbrains.com/newIssue?project=DBE as this issue is specific to the database functionality.
Thank you, I have downloaded new 2022 copy and installed it replacing my 2021 version, in the new copy in the Quick Documentation for the Database/Table node, the CNTL+A & CNTL+C is working fine in the popup screen and since the "showing first 10 rows" have been removed from the output in popup in the 2022 version, there is no need to report a bug