- Automatically indent python code block when pasting.
This feature utilizes other auto indent mechanism to indent the first line. For example, the Python extension by Don Jayamanne.
Bind your preferred keyboard shortcut to the command:
pyPasteIndent.pasteIndent
Example keybinding code, using Ctrl+Shift+v to execute pyPasteIndent.pasteIndent when editing Python Code:
{
"key": "ctrl+shift+v",
"command": "pyPasteIndent.pasteIndent",
"when": "editorLangId == 'python'"
}