How to set “jj” as Esc in VSCode Vim

Step 1: Open the command palette

shift + cmd + p

Step 2: Search for “Preferences: Open Settings (JSON)”

Step 3: Add the keybinding inside the settings object

    "vim.insertModeKeyBindings": [
        {
            "before": ["j", "j"],
            "after": ["<Esc>"]
        }
    ]

Another option is “fd” instead of “jj” since this can be typed faster than “jj”. Why? “jj” requires the same finger to move up and then down. “fd” can be typed almost simultaneously. I use “fd”