'Vim VS Code Extension: How to remap "i" in normal mode to Escape key?

So I want to remap "i" to escape key since i find it easier to remember. But when I do this to settings.json of the VS Code:

"vim.normalModeKeyBindings": [
     {
        "before": [
            "i"
        ],
        "after": [
           "<Esc>"
        ]
     }
] 

The "i" key is disabled and nothing happens. Just the "i" key in insert mode being disabled. Help, I'm new to vim.



Solution 1:[1]

open keyboards shortcuts in vscode (ctrl + k, ctrl +s) then search for vim_insert you can change the "i" key to anything that you want.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 mohammad_mohammadi_archangel