Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>Editor TweaksNew to Visual Studio Code? Get it now.
Editor Tweaks

Editor Tweaks

euxx

|
1 install
| (0) | Free
Toggle quotes, highlight current line, remove tabs on save, and prune stale recently-opened entries — small utilities in one extension.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Editor Tweaks

A collection of small VS Code editor utilities packed into a single extension.

Each feature is a focused improvement over the extension that originally inspired it.

VS Code Marketplace

Features

  • Highlight Current Line — bottom border decoration on the active cursor line
  • Toggle Quotes — cycle quote characters surrounding the cursor (" → ' → ` → ")
  • Remove Tabs on Save — replace tab characters with spaces using the editor's tabSize on save
  • Prune Open History — remove inaccessible paths from the recently opened list and the Go-to-File (Cmd+P) history

Highlight Current Line

Original Highlight Line

Improve:

  • Adds dimmed border (70% opacity) on inactive editors in split-screen

Applies a bottom border decoration to the active cursor line.

  • Active editor: full-brightness border following the cursor
  • Other visible editors: same border at 70% opacity, pinned to their last cursor position
  • Fully configurable: border color, style (solid / dashed / dotted), and width

Settings:

Setting Default Description
editorTweaks.highlightLine.enable true Enable the feature
editorTweaks.highlightLine.borderColor #65EAB9 CSS color value; leave empty to disable
editorTweaks.highlightLine.borderStyle solid solid · dashed · dotted
editorTweaks.highlightLine.borderWidth 1px CSS length value (e.g. 2px, 0.5em)

Toggle Quotes

Original Toggle Quotes

Improve:

  • Fixes \\ before closing quote being misidentified as an escape
  • Unescapes and re-escapes content when switching delimiters (original only swaps the quote chars)
  • Deduplicates multi-cursor edits on the same string (original applies the change twice, corrupting it)

Cycles the quote character surrounding the cursor: " → ' → ` → " …

  • Trigger: Alt+'
  • Correctly handles \\ before a closing quote
  • Automatically unescapes/re-escapes delimiters when switching (e.g. \" → " when leaving ")
  • Works with multiple cursors — each cursor cycles its own quoted string independently

Settings:

Setting Default Description
editorTweaks.toggleQuotes.enable true Enable the feature
editorTweaks.toggleQuotes.chars ["\"", "'", "\"]` Quote characters to cycle through

Remove Tabs on Save

Original Remove Tabs on Save

Improve:

  • Uses actual column position for tab stop calculation (original used string index, giving wrong expansion mid-line)
  • Unifies exclusions into excludePatterns supporting language ID, exact filename, or *-glob (original only supported extension globs and a separate ignoreMakefiles flag)

Before writing a file to disk, replaces all tab characters with spaces using the editor's tabSize setting.

  • Tab stops are computed by column position, not a flat replacement (e.g. a tab at column 2 with tabSize: 4 expands to 2 spaces)
  • Exclude files by language ID, exact filename, or *-glob (defaults exclude makefile and *.go which require tabs)

Settings:

Setting Default Description
editorTweaks.removeTabsOnSave.enable true Enable the feature
editorTweaks.removeTabsOnSave.excludePatterns ["makefile", "*.go"] Patterns to skip — language ID, exact filename, or *-glob matched against basename

Prune Open History

Original Recently Opened Sweeper

Improve:

  • Skips non-file:// entries for both workspaces and files — SSH/remote/virtual entries are never touched (original may attempt fsPath on them)
  • Single maxItems setting applied independently to each category: workspaces get maxItems slots and files get maxItems slots (original's keepCount is per-category but documented as a single shared limit)
  • Also prunes the Go-to-File (Cmd+P) editor history (not covered by the original)

Removes stale entries from both:

  • The VS Code recently opened list (File → Open Recent)
  • The Go-to-File (Cmd+P) editor history

"Stale" means the path no longer exists on disk.

  • Runs automatically on startup (configurable)
  • Also available as a manual command: Editor Tweaks: Prune Open History
  • Non-file:// entries (SSH, remote, virtual workspaces) in the recently opened list are always kept untouched
  • maxItems is applied independently to each category of the recently opened list: workspaces and files each get maxItems slots
  • Pruning the Go-to-File history requires the system sqlite3 CLI (available by default on macOS and most Linux distributions); if absent this part of the feature is silently skipped and only the recently-opened list is pruned
  • Go-to-File history pruning takes effect on the next launch (stale entries are written back to the workspace database on window close)

Settings:

Setting Default Description
editorTweaks.pruneOpenHistory.enable true Enable the feature
editorTweaks.pruneOpenHistory.runAtStartup true Prune automatically on startup
editorTweaks.pruneOpenHistory.maxItems -1 Max local entries to keep per category in the recently opened list (maxItems does not trim the Go-to-File history); -1 = no limit

License

Under the MIT License.

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