Hi all,
Is there a way in text mate to highlight a number of lines in Ruby code and then say "Comment/Un-comment", after which Textmate would apply the leading "#" comment before each of the lines?
Tks in advance Greg
On 6. Mar 2007, at 10:55, Greg Hauptmann wrote:
Is there a way in text mate to highlight a number of lines in Ruby code and then say "Comment/Un-comment", after which Textmate would apply the leading "#" comment before each of the lines?
A general tip about finding functionality: Press ⌃⌘T (Bundles → Select Bundle Item…) and enter a search term, like ‘comment’ — this will find Comment Line on ⌘/ (which also works with a selection).
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Sure,
CMD-/
or, as the Slash is a Key Combination by itself:
CMD-SHIFT-7
Pay attention to mark the complete first line, as TM has the irritation behavour of messing with your indention if you don't. (Just try it out)
Greetings Florian
Greg Hauptmann wrote:
Hi all,
Is there a way in text mate to highlight a number of lines in Ruby code and then say "Comment/Un-comment", after which Textmate would apply the leading "#" comment before each of the lines?
Tks in advance Greg
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
CMD-/
or, as the Slash is a Key Combination by itself:
CMD-SHIFT-7
The latter is of course not true for a us keyboard layout (which you should give a try -- writing code with a us layout is much faster most of the time. The / character, for example, is simply on the key on the left of the right shift key, no modifiers needed at all) ;-)