I like CMD + D to select the next identical selection, OPT + DOWN/UP to move the selections down or up a line, SHIFT + OPT + DOWN/UP to duplicate the selection, and CMD + / to turn the line into a comment. How bout you?

  • spartanatreyu@programming.dev
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    For awesome shortcuts, you need to look at emacs.

    What do you mean?

    Every example you went through is already there without emacs.

    (P.S. Jump to Matching Bracket is actually Cmd-Shift-\)

      • spartanatreyu@programming.dev
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 year ago

        Ah I misread your comment. I thought you were suggesting that vscode users turn on emacs shortcuts to gain shortcuts that were already in vscode.

        I’m not familiar with any emacs macros, they seem like a more quick-and-dirty version of what vscode has going on with it’s extensions.

        Your indent example would be easier in vscode, since in vscode land you only need to make a selection then press Tab, and the LSP will automatically indent it to the correct level. And if you have a formatter installed, simply saving the file will format the file (indentation included).

        But I’m guessing you included the indent example to show how to pass in an argument.

        VSCode can do similar things, but it’s not exactly the same. I use the following

        • Emmet
        • Find (with regex)
        • Fold Level “n”
        • Snippets with tab-stops