Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Mempressor - VS Code Working Set OptimizerNew to Visual Studio Code? Get it now.
Mempressor - VS Code Working Set Optimizer

Mempressor - VS Code Working Set Optimizer

Shunsuke F

|
1 install
| (0) | Free
Trim inactive VS Code memory in one click on Windows and keep your editor session open.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Mempressor

Give VS Code a lighter working set in one click

When VS Code starts feeling heavy, Mempressor asks Windows to release inactive resident pages from the current window's process tree. Click the status bar, keep your editors open, and get back to work without restarting VS Code.

Try it in 10 seconds

  1. Install Mempressor on Windows.
  2. Watch the current VS Code working set in the status bar.
  3. Click the memory indicator to compress inactive resident pages.

No setup is required for the safe default mode.

Why install it

  • One-click compression: trim the current VS Code window without closing editors
  • Always visible memory status: see the current working set directly in the status bar
  • Fast native helper: a small Rust binary calls the Windows EmptyWorkingSet API
  • Focused by default: targets only the process tree for the current VS Code window
  • Optional automation: trigger compression by memory threshold or window inactivity
  • Collision protection: cooldown and cross-window locking prevent repeated operations
  • Useful diagnostics: view successful operations and access failures in the output log

Modes that stay under your control

The default mode is manual. Start there, then enable either optional automation mode only when it fits your workflow.

  • Current window: the safest and recommended scope
  • All VS Code windows: use only when every running VS Code process should be targeted
  • Threshold mode: compress when the measured working set reaches your configured limit
  • Unfocused mode: compress after the window remains inactive for a configured delay

Commands

  • Mempressor: Compress VS Code Working Set
  • Mempressor: Refresh Memory Status
  • Mempressor: Show Status Log

Settings

Setting Default Description
mempressor.enabled true Enable working set monitoring
mempressor.scope currentWindow Target the current window or all VS Code windows
mempressor.pollingIntervalSeconds 15 Refresh interval; minimum 5 seconds
mempressor.autoCompressThresholdMb 0 Compress above this threshold; 0 disables it
mempressor.trimOnWindowBlur false Enable compression after the window loses focus
mempressor.blurDelaySeconds 3 Wait time before unfocused compression
mempressor.cooldownSeconds 300 Minimum delay between automatic operations
mempressor.showNotifications true Show automatic operation results

What Mempressor does not do

Mempressor does not terminate processes, restart extension hosts, close editors, or promise a smaller heap. Working set trimming returns inactive resident pages to Windows; the OS can page that memory back when it is needed. Aggressive or frequent trimming can therefore add page faults and temporary pauses.

Automatic compression is off by default. Prefer a generous polling interval and cooldown.

Requirements

  • Windows 10 or Windows 11
  • x64 or arm64 VS Code

Private by design

Mempressor runs locally and sends no data off the machine. It reads process IDs, parent process IDs, executable names, and working set counters for VS Code process trees. It does not inspect document contents, source code, command lines, environment variables, or network activity.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft