Skip to content

AllanLRH/py-paste-indent

 
 

Repository files navigation

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

Change Logs

  • version 0.0.2

    image

  • version 0.0.3

    image

    1. The command is changed from pyPasteIndent.pasteAndIndent to pyPasteIndent.pasteIndent.
    2. Directly rewrite the clipboard content so that no "content flash" would appear.
    3. In order to access the clipboard API, update your vscode. This version is tested on vscode 1.30.1.
  • version 0.1.1

    Fix bugs.

About

python paste and indent extension for VS Code

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%