Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Debug Log CleanerNew to Visual Studio Code? Get it now.
Debug Log Cleaner

Debug Log Cleaner

Ayus Paudel

| (0) | Free
Highlights and automatically cleans temporary developer logs before commits
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Debug Log Cleaner

Debug Log Cleaner highlights temporary developer-log lines and removes them from the current workspace when you are ready to clean up.

Developed by Ayus Paudel.

Mark a line for removal by ending its comment with Clr:Dev:

console.log(user) //Clr:Dev
print(user) #Clr:Dev

The marker is case-insensitive, so //clr:dev works too. The whole marked line is removed.

Supported comment styles

Use the syntax normally used by the file's language:

Comment form Examples of supported languages
//Clr:Dev JavaScript, TypeScript, Java, C, C++, C#, Go, Rust, Kotlin, Swift, Dart, PHP, Solidity
#Clr:Dev Python, Ruby, Shell, PowerShell, R, Perl, YAML, Dockerfile, Elixir
--Clr:Dev SQL, Lua, Haskell, AppleScript, Ada
;Clr:Dev Lisp, Clojure, Assembly, INI
%Clr:Dev or !Clr:Dev MATLAB, Erlang, Fortran
'Clr:Dev or REM Clr:Dev Visual Basic, VBScript, Windows batch files
/* Clr:Dev */ CSS, SCSS, JavaScript, TypeScript, Java, C-family languages
<!-- Clr:Dev --> HTML, XML, SVG, Markdown
(* Clr:Dev *), {- Clr:Dev -}, { Clr:Dev } OCaml, Pascal, Haskell
--[[ Clr:Dev ]] or #| Clr:Dev |# Lua and Racket

Features

  • Highlights marked lines in the active editor.
  • Adds a Clean Dev Logs button to the status bar.
  • Provides the Clean Dev Logs command in the Command Palette and editor context menu.
  • Scans the workspace and deletes every marked line.
  • Skips node_modules, .git, dist, build, .next, and out folders.
  • Saves modified files automatically after cleanup.

Usage

  1. Add a supported comment marker ending in Clr:Dev to a temporary log line.
  2. Run Clean Dev Logs from the Command Palette (Cmd+Shift+P on macOS, Ctrl+Shift+P on Windows/Linux), the editor context menu, or the status-bar button.
  3. Review the saved changes before committing. If needed, use VS Code's Undo immediately after cleanup.

Requirements

Debug Log Cleaner supports Visual Studio Code 1.80.0 and newer.

Release notes

Release history is included in the extension's CHANGELOG.md file.

License

This extension is released under the MIT License. The full license text is included in the extension's LICENSE file.

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