Go to File > Preferences > Keyboard Shortcuts ( Ctrl+K Ctrl+S )
Search for “vim_escape”
Edit and repalce “Escape” with “CapsLock”
Enter to close the dialog. That’s it.
Alternatively you can add config in keybindings.json
Press “Ctrl+Shift+P” search for “Preferences: Open Keyboard Shortcuts (JSON)”
Add following to keybindings array and save the file.
{
"key": "escape",
"command": "-extension.vim_escape",
"when": "editorTextFocus && vim.active && !inDebugRepl"
}