Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Python Paste And IndentNew to Visual Studio Code? Get it now.
Python Paste And Indent

Python Paste And Indent

hyesun

|
86,960 installs
| (12) | Free
paste and indent for python
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

PY-PASTE-INDENT

Features

  • Automatically indent python code block when pasting.

Requirements

This feature utilizes other auto indent mechanism to indent the first line. For example, the Python extension by Don Jayamanne.

Extension Settings

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'"
}

Screenshot

image

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft