4 ms·
It's interesting that it's hard to explain, because the fingers will play the chord by themselves and I need to stop and think to know what I am actually typing
by juanre 15y ago
It's interesting that it's hard to explain, because the fingers will play the chord by themselves and I need to stop and think to know what I am actually typing.
C-x r k to cut a rectangle, and C-x r t to add one filled with, for example, the comment symbol:
(C-space)this
to comment
C-x r t #
#this
#to comment
- tikhonj 15y agoYou 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
- ludwigvan 15y agoI find cua-mode's rectangle support superior. http://trey-jackson.blogspot.com/2008/10/emacs-tip-26-cua-mode-specifically.html http://trey-jackson.blogspot.com/2008/10/emacs-tip-26-cua-mo...
- to3m 15y agoHoly crap, thank you very much! Looks like cua-mode rectangle select might actually be the equal of Visual Studio's very straightforward rectangle selections...