[wingide-users] Use two # symbols when commenting out a region
support at wingware.com
Thu Jun 25 12:59:16 MDT 2009
Encolpe Degoute wrote:
>> From the IDLE mailing list (the final text is from Guido van Rossum):
>>>>> Why does IDLE use two hash marks for comments (##)? Most other
>>>>> (Geany, SPE) use a single hash mark (#) to designate comments.
>>>> I actually don't know. I find that it's rather useful since I usually
>>>> use the commenting function to comment out blocks of code, and having
>>>> these commented with "##" differentiates them from comments which I
>>>> write manually.
>>> +1 this is exactly how I use it.
>> And this is how it's meant to be used. Quickly comment or uncomment a
>> section of code. Invaluable.
> I'm using ## for a code explanation and # for a commented out code.
Note that the command comment-block-toggle is already there, in
scripts/editor_extensions.py. Bind that to a key and you should be
all set of you want ## (assuming that implements what you want,
that is ;-).
In the future we'll add a preference so that the default comment
out can be altered to this style.
Wingware | Python IDE
Advancing Software Development
More information about the wingide-users