I'm hitting Command+/ to toggle code comments on and off, but it always defaults to block comments (/* ... */). Is there a way to default Command+/ to line comments (// ...), or can I press another hotkey to do this?
Cheers,
Andrew Pennebaker www.yellosoft.us
On Sep 30, 2012, at 1:49 AM, Andrew Pennebaker andrew.pennebaker@gmail.com wrote:
I'm hitting Command+/ to toggle code comments on and off, but it always defaults to block comments (/* ... */). Is there a way to default Command+/ to line comments (// ...), or can I press another hotkey to do this?
Is this for a particular language?
If not, go to the bundle editor and edit Source → Settings → Comments.
It has the block comments defined as the first comment style, which means this is used when creating new comments. The following styles are for uncommenting.
Related about comments: http://macdevelopertips.com/textmate/textmate-working-with-comments.html
Is this for a particular language?
Sorry, forgot to mention I was using NASM specifically. I added an x86 assembly tmbundlehttps://github.com/lunixbochs/x86-assembly-textmate-bundle, and it works okay, but it turns out NASM doesn't have C-style block comments (/* ... */), so when I press Command+/, TextMate ends up commenting my code with syntax that NASM doesn't recognize.
One way to fix this is to tell TextMate to always prefer using line comments when I press Command+/ instead of block comments, and I'd like TextMate to express this preference for every language I use, not just NASM.
I see Source -> Settings -> Comments, but I'm not exactly sure how to edit it to do this. Could I have a little more guidance?
I had a similar problemhttp://comments.gmane.org/gmane.editors.textmate.general/35431 maybe it can help
Elia
— ☁ @elia http://twitter.com/elia (twitter) ✎ elia@schito.me (gtalk) ☎ (+39) 348/9051393 perlelia@gmail.com (FaceTime)
On Sun, Sep 30, 2012 at 6:19 PM, Andrew Pennebaker < andrew.pennebaker@gmail.com> wrote: