Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

command 'paste and indent.action' not found in VS Code

I installed a VS Code extension called paste-and-indent in an attempt to replicate Sublime Text's formatting behavior when copy-pasting code. I then added the following keybindings to the keybinding.json file as instructed:

{
    "key": "ctrl+v",
    "command": "pasteAndIndent.action",
    "when": "editorTextFocus && !editorReadonly"
},
{
    "key": "ctrl+v",
    "command": "editor.action.clipboardPasteAction",
    "when": "!editorTextFocus"
},
{
    "key": "ctrl+shift+v",
    "command": "editor.action.clipboardPasteAction",
    "when": "editorTextFocus && !editorReadonly"
}

But when I try to paste with ctrl+v it doesn't even paste anything and the following error message pops up: command 'paste and indent.action' not found in VS Code. Tried searching the error, haven't seen anything remotely similar.

like image 882
Fadi Avatar asked Jul 10 '26 13:07

Fadi


1 Answers

Use editor.action.clipboardPasteAction instead of pasteAndIndent.action

like image 194
dǝɥɔS ʇoıןןƎ Avatar answered Jul 13 '26 17:07

dǝɥɔS ʇoıןןƎ