Skip to content

Edit multiline strings that need to be encoded as single-line strings (for example, JSON strings that contain literal `\n` characters) in Visual Studio Code.

License

Notifications You must be signed in to change notification settings

chop-dbhi/vscode-multiline-string-editor

Repository files navigation

Multiline String Editor

Easily edit multiline strings that need to be encoded as single-line strings (for example, JSON strings that contain literal \n characters).

How to Use

how_to_use

  1. Move caret to the target string.

caret_on_target

  1. Open command palette and select Edit as multiline string.

  2. Edit opened multiline.txt.

Developing

  1. Clone the repository, and install its dependencies:
git clone <this repository>
cd <this directory>
npm install
code .
  1. Run npm run compile.
  2. Press F5 to launch a development window.
  3. You can refresh the development window (from within the development window) with Cmd + Shift + P -> Developer: Reload Window.

Packaging

  1. Install vsce.
  2. Run vsce package.

See the packaging documentation for more information.

You can then manually upload the packaged (.vsix) file to the VSCode Marketplace from https://marketplace.visualstudio.com/manage/publishers/.

About

Edit multiline strings that need to be encoded as single-line strings (for example, JSON strings that contain literal `\n` characters) in Visual Studio Code.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published