Commenting Code

FFischer

Member
Hi,

is it possible to select code and comment all the selected lines (no matter if selected 100% or just the cursor in one line) via "--" instead of /* */?

It might be usefull to comment a selection using /* */, but I never used it, so far.
I always comment code using "--".

If it is not possible yet, maybe it could be added in future releases?

Thanks in advance
 
you can use a shortcut like ALT-C to comment and ALT-X to uncomment a selection with /* */
this works faster and perhaps better than die comment-plugin (it can comment comments an decomment comments, yes thats no joke!)
 
@FrankB

You can also use shortcuts for the comment-plugin. I use ctrl - and ctrl shift -. I think it's a matter of preference. Personally I don't like /**/ style comment blocks.
 
@Marco

the main advantage of /* */ is, that you can hide complete sections with code folding (and if you already requested, hide for printing also)
 
Back
Top