Description: I think it would be a nice little time saver to be able to right click on a selected object or variable in the code window and offer to add it to the Watch window. Currently you need to highlight it, copy it, paste it in the Watch window, press enter. Steps to Reproduce: 1. highlight item 2. copy item 3. go to watch window 4. paste it in the window 5. enter Actual Results: N/A Expected Results: Right click on the item in thew code window, select "Add to Watch" and item appears in the watch window Reproducible: Always User Profile Reset: No Additional Info: Version: 7.6.4.1 (X86_64) / LibreOffice Community Build ID: e19e193f88cd6c0525a17fb7a176ed8e6a3e2aa1 CPU threads: 8; OS: Windows 10.0 Build 19045; UI render: Skia/Vulkan; VCL: win Locale: en-GB (en_GB); UI: en-GB Calc: CL threaded
+1 from my side... seems very helpful
Try [F7]. Add menu [.uno:AddWatch].
Or set cursor in the object name and click on the spectacles-icon.
Toolbar and shortcut, that should do the trick very well. => WF But also no objection to add the command to the context menu.
@nobu I did not know about the F7 key, that does indeed add the item under the cursor to the Watch window, thanks. When looking at that menu item "Run" -> "Enable Watch F7", it does not really tell you you're going to add this to the Watch window, I assumed it meant, open the Watch window as per the toolbar button. I still think adding this to the context menu is a good thing to do and also, now that I have seen it, the menu text could be changed to state something like "Add to Watch", so it explicitly states what it is doing.
Can you reopen this again and reconsider please. If your hand is already on the mouse, adding it to the context menu means you don't need to lift your hand off the mouse to press a key.