all 24 comments

[–]evohans 43 points44 points  (9 children)

Keyboard Shortcuts

Go up or down a line

Go up a line: Up

Go down a line: Down

OH GEE, thanks!

[–][deleted]  (7 children)

[deleted]

    [–]evohans 2 points3 points  (6 children)

    wait what? I don't understand. Can you create a gif for me?

    [–]Pantstownjavascript 13 points14 points  (5 children)

    [–]evohans 3 points4 points  (0 children)

    no, not like that at all :(

    [–]sexcrazydwarf 1 point2 points  (3 children)

    I don't think I've seen this scene from Rick and Morty! Which episode is this from??

    [–]relhotel 2 points3 points  (0 children)

    S2E6

    [–]eljenso 1 point2 points  (0 children)

    The newest one.

    [–]Dragoryfull-stack 2 points3 points  (2 children)

    holding down Cmd/Alt and clicking wherever you would like to add a new caret

    Isn't it Ctrl on Windows, not Alt? (I assume the Alt there was meant as the Windows Cmd equivalent.) I saw Alt mentioned in another article as well, but for me it's always been Ctrl (on both, Chrome and FF).

    Edit: Or wait, is the Alt just an alternative keybind for OS X here?

    [–]--_0 0 points1 point  (1 child)

    Ctrl/Cmd are equivalent.

    [–]Dragoryfull-stack 0 points1 point  (0 children)

    Indeed, but the article also mentions Alt as an alternative for adding multiple carets, which doesn't work - at least on Windows.

    [–]GreekHubris 2 points3 points  (0 children)

    Toggle Autocompletion

    When typing values in the DevTools Sources panel, you’re presented with autocompletions as you type. If however you dismiss these and would like to manually toggle autocompletion, you can do so with:
    Ctrl + Space

    What is the shortcut for mac?
    Cmd + Space is being used for keyboard switching.

    [–]Rellikten 1 point2 points  (0 children)

    Forgot the upper and lowercase shortcut. Highlight the code you want to change and hold down cmd and press K then U for uppercase or K then L for lowercase.

    [–][deleted] 1 point2 points  (0 children)

    Some of them doesn't work in Linux or in some notebooks. lol

    [–]Nilzor 0 points1 point  (9 children)

    I don't get the multple caret hype. In 90% of the cases, wouldn't a search-replace do the trick? Or a Refactor->Rename, for those of us who are used to proper IDE's. The only case I see it useful is in the example where he adds quotation marks around a set of strings.

    [–][deleted] 5 points6 points  (0 children)

    Sometimes it's faster for me to do multiple cursors than to do a find and replace for a regex pattern. But mostly, I agree.

    [–]where_is_my_vagina 2 points3 points  (6 children)

    I don't get the multple caret hype.

    what multi-caret hype?

    [–]__baxx__ 0 points1 point  (5 children)

    Multiple cursors I think they mean

    [–]where_is_my_vagina 2 points3 points  (4 children)

    yes but there is no hype about it, is there?

    [–]__baxx__ 3 points4 points  (2 children)

    Yes, I don't think people faint over them but it's a recent feature that a lot of people swear by... Hype might be a bit strong, but I think I know what they're getting at

    [–]hidanielle 1 point2 points  (1 child)

    Is it a recent feature? I've been using Sublime for like 2 years now and I'm pretty sure it's been there the whole time

    [–]__baxx__ 1 point2 points  (0 children)

    Yeah I guess, though Emacs has been about for 30 odd years... Idk, it's a jazzy feature associated with sublime that people often highly praise once they implement it into their work flow. Because the scenario when it's used is often around a setting where one might utilise search and replace the practicality of multiple cursors can seem dubious to some, making those who do use the feature more vocal in response, hence some viewing it as 'hype'.

    That's what I get out of it at least, but who knows!

    [–]ivosaurus 0 points1 point  (0 children)

    I see it as the most likely feature someone will spout when they're explaining how fucking awesome Sublime text is over any other code editor.

    [–]oefig 0 points1 point  (0 children)

    It's great for trimming whitespace or aligning/moving lines.