Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Stringified JS/JSON EditorNew to Visual Studio Code? Get it now.
Stringified JS/JSON Editor

Stringified JS/JSON Editor

LoveByte

|
2 installs
| (0) | Free
Edit stringified JS objects and JSON strings inline with a rich popup editor
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Stringified JS/JSON Editor

Visual Studio Marketplace License

A powerful, light-weight Visual Studio Code extension that allows you to easily edit stringified JSON strings and JavaScript object literals inline using a side-by-side formatted editor.

No more manual unescaping, quote fixing, or formatting!


Features

  • Inline JS/JSON Editing: Select any stringified JS/JSON value and edit it directly.
  • Smart unwrapping: Handles double-quoted or single-quoted JSON strings that are wrapped in string literals.
  • Support for JS Literals: Safely parses and preserves special JavaScript types (e.g., Date, RegExp, undefined, Infinity, NaN, and functions) using a sandboxed context, which traditional JSON.parse would fail on or strip.
  • Formatted Side-by-Side Editor: Automatically formats and opens the object in a temporary .js document on the side, giving you the power of VS Code's rich syntax highlighting, auto-formatting, and linting.
  • Auto Write-back on Save: Every time you save the temporary document, the contents are validated and automatically serialized, escaped, and written back to your selection in the source document.
  • Safe Sandbox Execution: Parsing runs in a sandboxed Node VM context, keeping your environment secure.

How to Use

  1. Select the JS object literal or stringified JSON in your document.
    • Example: '{"name": "VS Code", "settings": {"theme": "Dark"}}'
  2. Open the Editor:
    • Right-click and choose Edit as JS/JSON from the context menu.
    • OR press Ctrl+Shift+J (Windows/Linux) or Cmd+Shift+J (macOS).
  3. Edit: A temporary formatted JS editor will open beside your current active file. Modify it freely.
  4. Save to Sync: Press Ctrl+S (or Cmd+S) to save the temporary editor. The changes are validated and synced back to your original selection automatically.
  5. Close: Close the temporary editor when you're finished. The extension will automatically clean up the temporary file.

Extension Settings & Keybindings

This extension contributes the following configuration/keybindings:

  • ctrl+shift+j (Windows/Linux) / cmd+shift+j (macOS): Opens the inline JS/JSON editor for the selected text.

License

This extension is licensed under the MIT License.

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