Skip to content

Latest commit

 

History

History
127 lines (94 loc) · 3.1 KB

File metadata and controls

127 lines (94 loc) · 3.1 KB

Paste Type

A VSCode extension that types clipboard text into the editor when you paste.

What it does

  • Overrides paste in text editors (Ctrl+V / Cmd+V)
  • Reads your clipboard text
  • Types it character-by-character
  • Preserves exact formatting, including spaces, tabs, and indentation
  • Adds a status bar toggle so you can quickly turn Paste Type on/off and see current state
  • Adds a status bar speed menu so you can quickly switch typing pace from slow to fast

Demo animated gif of VSCode exxtension Paste Out

Configuration

  • paste-type.enabled: Enables/disables Paste Type.
    • Default: true
    • When disabled, Ctrl+V / Cmd+V uses VSCode's default paste behavior.
  • paste-type.typingDelayMs: Delay (in milliseconds) between each typed character.
    • Default: 40
    • Increase this if you want visible typing animation.

Toggle on/off quickly

  • Use the status bar button on the right side:
    • Paste Type: On
    • Paste Type: Off
  • Click the button to toggle state.
  • You can also run the command: Paste Type: Toggle Enabled.

Speed menu

  • Use the Paste Speed status bar item next to the toggle.
  • Click it to choose one of the built-in presets:
    • Slow
    • Comfortable
    • Balanced
    • Fast
    • Instant
  • You can also run the command: Paste Type: Select Speed.

Run locally

  1. Install dependencies:
    npm install
  2. Compile:
    npm run compile
  3. Press F5 in VSCode to launch an Extension Development Host.
  4. Copy code and paste in an editor to see it typed out.

Install in VSCode

  1. Install the VSCode extension packager:
    npm install -g @vscode/vsce
  2. From this project folder, build and package the extension:
    npm install
    npm run compile
    vsce package
  3. Install the generated .vsix file using one of these options:
  • Command line:
    code --install-extension paste-type-0.0.1.vsix
  • VSCode UI:
    1. Open Extensions view.
    2. Click the ... menu.
    3. Select Install from VSIX....
    4. Choose the generated .vsix file.
  1. Reload VSCode when prompted.

Publish to VSCode Marketplace (App Store)

  1. Prepare extension metadata in package.json:
  • Ensure name, displayName, description, version, and publisher are correct.
  • Add repository, license, and icon fields if missing (recommended for listing quality).
  1. Create a publisher profile:
  1. Create a Personal Access Token (PAT):
  1. Install vsce (if not already installed):
npm install -g @vscode/vsce
  1. Log in with your publisher name:
vsce login <your-publisher-name>
  • Paste your PAT when prompted.
  1. Publish:
npm run compile
vsce publish

Optional version bump while publishing:

vsce publish patch
vsce publish minor
vsce publish major

After publish, your extension should appear on the VSCode Marketplace within a few minutes.