3 ms·
You can also use the M-x comment-region and M-x uncomment region to comment stuff. If you use it a lot, just bind them to a convenient key stroke.
by tikhonj 15y ago
You can also use the M-x comment-region and M-x uncomment region to comment stuff. If you use it a lot, just bind them to a convenient key stroke.
- mark_h 15y agoDon't forget M-; is comment-dwim which usually does... what you mean (uncomments the region if it looks commented, comments it otherwise)
- rebelnz 15y agoThis was my contribution to the SO thread! Super handy feature. I also use the - highlight block - then 'C shift -' to undo in region
- draven 15y agoand/or M-x comment-box