It would be great to have somewhat more explicit usage instructions (as in a literal snippet to add to keybindings.json), like g3rry provides. I ended up with this (based on g3rry's example, but it took a bit of doing to figure out the exact action name for me):
{
"key": "ctrl+v",
"command": "extension.paste-indent",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+v",
"command": "editor.action.clipboardPasteAction",
"when": "!editorTextFocus"
},
{
"key": "ctrl+shift+v",
"command": "editor.action.clipboardPasteAction",
"when": "editorTextFocus && !editorReadonly"
},
And possibly for the total n00bs (like I was), how to even get to keybindings.json (Ctrl+Shift+P, then type Preferences: Open Keyboard Shortcuts (JSON)).
It would be great to have somewhat more explicit usage instructions (as in a literal snippet to add to keybindings.json), like g3rry provides. I ended up with this (based on g3rry's example, but it took a bit of doing to figure out the exact action name for me):
{ "key": "ctrl+v", "command": "extension.paste-indent", "when": "editorTextFocus && !editorReadonly" }, { "key": "ctrl+v", "command": "editor.action.clipboardPasteAction", "when": "!editorTextFocus" }, { "key": "ctrl+shift+v", "command": "editor.action.clipboardPasteAction", "when": "editorTextFocus && !editorReadonly" },And possibly for the total n00bs (like I was), how to even get to keybindings.json (Ctrl+Shift+P, then type
Preferences: Open Keyboard Shortcuts (JSON)).