Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>invisalineNew to Visual Studio Code? Get it now.
invisaline

invisaline

Polyseam

|
6 installs
| (0) | Free
visually indent ts and js template strings
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

invisaline

invisaline is a VS Code extension that visually aligns multi-line JavaScript and TypeScript template literals to match their surrounding code indentation — without changing your source file.

[!IMPORTANT] legally distinct from and unrelated to the mouth technology "invisalign"

Installation

From the Marketplace

  1. Open the Extensions view in VS Code (Ctrl+Shift+X / Cmd+Shift+X).
  2. Search for invisaline and click Install.

The Problem

When writing multi-line template literals, the content is pushed all the way to the left margin of the editor, which can make it hard to read and it just appears messy.

function greet(name: string) {
  const message = `Hello, ${name}!
Welcome to invisaline.
  `;
}

The Solution

Invisaline automatically aligns the content of multi-line template literals with the surrounding code indentation, making it easier to read and more visually consistent. This is purely a visual change and does not modify the source file.

function greet(name: string) {
  const message = `Hello, ${name}!
     Welcome to invisaline.`; // this code is visually indented, but contains no extra spaces
}

Usage

The extension will automatically activate when you open a JavaScript or TypeScript file so long as invisaline.enabled is set to true globally or in the current workspace.

Enable the extension

Open the command palette (Ctrl+Shift+P / Cmd+Shift+P) and run the command Invisaline: Enable Visual Template String Indentation then select whether you want it enabled for all workspaces or just the current one.

Disable the extension

Open the command palette (Ctrl+Shift+P / Cmd+Shift+P) and run the command Invisaline: Disable Visual Template String Indentation then select whether you want it disabled for all workspaces or just the current one.

Contributing

Contributions and feedback are welcome! Please open issues or pull requests on GitHub to suggest new features or report bugs.

License

Apache 2.0

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