This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
The SQL editor in NetBeans 5.5 now supports the functionality where I can highlight a single SQL statement and right-click and choose "Run Selection" to run the selected SQL statement. This is a great addition. Can a keyboard shortcut be added for this? I typically use the keyboard as much as possible and avoid the mouse. It would be nice if the existing Ctrl+Shift+E shortcut would recognize when a text was highlighted and run only the selected text.
Will try to implement 6.0.
I think it is an VERY useful feature when the existing Ctrl+Shift+E shortcut would recognize when a text was highlighted and run only the selected text. The separate action "Run selection" is not a common practice. See doc of MS SQL Sever Managment Studio: "If a part of the code is selected, only that part is executed. If no code is selected, all the code in the Query Editor is executed." See doc of DBVisualizer: "If you select a statement in the SQL editor and choose SQL->Execute, only the selected statement is executed. This is a useful feature when you have several SQL statements are in the SQL editor and you just want to execute one or a few of the statements."
Andreas (aka sansan) - do you want to work on this? If so, please assign to yourself and mark as "Started"
Reassigned to new owner.
*** Issue 157096 has been marked as a duplicate of this issue. ***
Go to menu "Tools -> Options", select keymap and search for "Run SQL Selection". After that you can assign a short cut to this action.
The Oracle SQL Developer has an nice shortcut to run the statement. If you press Ctrl + Enter this run the first statement in the line. This is easier and faster than select the statement that I want to run. I didn't find this feature, so I'm reopening the bug.
Please try following the advice in comment #6. If there is no selection, the statement the cursor is in, is executed, if there is a selection, the selection gets executed. If you think this is not what you want, please open another bug, as the root cause of this bug is fixed.