JavaScript for WordPress Forums Bugs & Issues Commented code

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #8809
    Juliette Tworsey
    Participant

    Hi all!

    I have a question that is probably going to seem quite silly and newbie(ish), but I am stumped:

    When Zac un-comments a large block of code, how is he doing that? When I try to do that on my Mac (with the delete/backspace key) everything just gets deleted. I couldn’t find anything on Google.

    Thanks in advance to anyone who can tell me how to do this! Knowing how to do this simple task is going to be a huge time saver.

    #9049
    Michael Davies
    Participant

    It got me for a while too!

    I’m using Windows, on which you press ctrl+/. I would imagine it’ll be something + / on Mac…

    Hope that helps!

    #9073
    Juliette Tworsey
    Participant

    Hi Michael,

    Thanks for getting back to me. I have tried both key combos and unfortunately neither works.

    Maybe Zac knows.

    Cheers:-)

    #9192
    Zac Gordon
    Keymaster

    Select the code you want and then

    “Command + /”

    🙂

    #9206
    Juliette Tworsey
    Participant

    Thanks Zac. That works (in Atom). I was trying to do this in the console and it doesn’t work there. I’ll just grab the code from my editor now.

    Cheers:-)

    #9233
    Zac Gordon
    Keymaster

    Yes, this is only going to work in a code editor or on jsbin. To my knowledge it won’t work in the console.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.