Feature request #21286
[Expression]Add shortcut for (multiple) lines commenting when writing expressions
Status: | Open | ||
---|---|---|---|
Priority: | Normal | ||
Assignee: | - | ||
Category: | Expressions | ||
Pull Request or Patch supplied: | No | Resolution: | wontfix |
Easy fix?: | No | Copied to github as #: | 29104 |
Description
I often play with expression functions and while looking for the best expression, I sometimes need to comment parts of the code being written in order to test the behavior of the rest or ignore it (and save it for later). This needs to be done by adding '--' to all the lines I want to hide and again remove those characters later if I want to enable some lines. A bit not handy...
It could be nice to allow selection of multiple lines and pressing either a key or from the contextual window allow to apply "Comment" or "Uncomment" functions.
History
#1 Updated by Nyall Dawson over 5 years ago
You can always use the multiline comment style:
/*
select * from ....
blah
more
*/
#2 Updated by Harrissou Santanna over 5 years ago
Good to know. Thanks Nyall.
#3 Updated by Nyall Dawson over 5 years ago
- Resolution set to wontfix
- Status changed from Open to Feedback
So can we close this?
#4 Updated by Harrissou Santanna over 5 years ago
I'm not really sure. Now that I know there's no need to comment each line one by one, my workflow is sped up but the request was also about a shortcut, ie I select the text or the rows and press some keys (or a button?) and they are (un)commented, like you can do on most of text editors.
#5 Updated by Harrissou Santanna over 5 years ago
- Status changed from Feedback to Open