[request] IDE shortcut: comment/uncomment a whole block

Bug #585342 reported by AKeem
40
This bug affects 8 people
Affects Status Importance Assigned to Milestone
SikuliX
In Progress
Medium
RaiMan

Bug Description

If you want to test some code actions, you often have to comment out some lines in your code.
It would be very nice if there was a key kombination for commenting out a whole selected code block.

I also use the Eclipse editor for programming in Java, an there is a feature like that.

Maybe this feature would increase the usability of SIKULI much.

Tags: editor
Revision history for this message
Tsung-Hsiang Chang (vgod) wrote :

I usually indent a block of code (which can be done by select & tab) and add a "def _dummy_func():" before it. You can do this even the code is already in a function or a class.

Changed in sikuli:
importance: Undecided → Wishlist
status: New → Triaged
Revision history for this message
RaiMan (raimund-hocke) wrote :

In Python placing """ (three apostrophes) in the lines before and after the code block does exactly this

"""
this is
a multiline
comment
"""
popup("I am code again")

this might be clearer.

In Netbeans there is a support for that: add/delete comment: which adds or deletes # at the beginning of the selected lines.

This could be easily added to Sikuli IDE, since it is a similar processing like TAB/Shift-TAB.

summary: - [ feature request ] comment out a whole block
+ [feature request] IDE shortcut: comment/uncomment a whole block
RaiMan (raimund-hocke)
summary: - [feature request] IDE shortcut: comment/uncomment a whole block
+ [request] IDE shortcut: comment/uncomment a whole block
Revision history for this message
Mike Williamson (sleepycat) wrote :

This would be a great feature for the IDE. Mostly as a way for beginners to discover the multiline comment that Raiman pointed out.

RaiMan (raimund-hocke)
Changed in sikuli:
status: Triaged → In Progress
assignee: nobody → RaiMan (raimund-hocke)
RaiMan (raimund-hocke)
tags: added: editor
RaiMan (raimund-hocke)
Changed in sikuli:
importance: Wishlist → High
milestone: none → x1.1
RaiMan (raimund-hocke)
Changed in sikuli:
milestone: 1.1.0 → 1.2.0
Revision history for this message
UNCCheezy (shawny2005) wrote :

not going to happen for 1.1?

Revision history for this message
UNCCheezy (shawny2005) wrote :

putting in a request.

Revision history for this message
RaiMan (raimund-hocke) wrote :

@comment #4
no, it is on the list for 1.2 (see Milestone right in yellow line)

RaiMan (raimund-hocke)
Changed in sikuli:
milestone: 2.0.0 → 2.1.0
importance: High → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.