Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Advanced Paste as String ArrayNew to Visual Studio Code? Get it now.
Advanced Paste as String Array

Advanced Paste as String Array

Koray Bilgi

|
9 installs
| (0) | Free
Paste text as string array with single or double quotes, line breaks and commas.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Advanced Paste as String Array

CI

Paste anything — instantly format it as a string array. This VS Code extension converts whatever you've copied into a clean, ready-to-use string array, complete with your chosen delimiter and quote style.

Perfect for developers who frequently transfer data from spreadsheets, logs, or file systems into code.


✨ What It Does

Copy text from virtually any source:

  • Excel or Google Sheets
  • Multi-line strings
  • Single-line inputs
  • Terminal output
  • OS folder contents
  • File lists, URLs, logs, etc.

Then paste it as a neatly formatted string array, for example:

'First', 'Second', 'Third', 'And The Last Item'

No more manual find/replace — just paste and code.

Supported Options

  • Quote style: single ' ' or double " "
  • Separator: whitespace, newline, or custom
  • Prompt before pasting: use default settings or choose options each time.

🚀 Usage

1- Context Menu

Right-click inside the editor and select: Paste As > String Array

2- Command Palette

Run: Paste as String Array

3- Editor Title Button

A dedicated poop ( Poop Icon ) button appears in the editor title for quick access.


⚙️ Settings

You can customize output preferences in settings.json:

{
  // Default quote style: ["double", "single"]
  "paste-as-string-array.defaultQuote": "single",
  // Default separator: ["whitespace", "newline", "special"]
  "paste-as-string-array.defaultSeparator": "newline",
  // Works only if defaultSeparator is "special"
  "paste-as-string-array.defaultSpecialSeparator": ",",
  // Default paste format: ["single", "multi"]
  "paste-as-string-array.defaultFormat": "single",
  // Show quote style options when pasting
  "paste-as-string-array.promptForQuote": true,
  // Show separator options when pasting
  "paste-as-string-array.promptForSeparator": true,
  // Show format options when pasting
  "paste-as-string-array.promptForFormat": true
}

🧪 CI & Reliability

This extension is continuously validated with GitHub Actions to ensure consistent behavior across platforms.

CI


Derived From

This extension is originally based on ShadyBoukhary’s vscode-paste-as-string-array and has been enhanced with additional features and improvements.

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