Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>Delete CommentsNew to Visual Studio Code? Get it now.
Delete Comments

Delete Comments

rui319420

|
1 install
| (0) | Free
Remove all comments from the active file while preserving string literals.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Delete Comments

文字列リテラル内の文字を安全に保護しながら、開いているファイルのコメントをすべて削除します。
Remove all comments from the active file while safely preserving characters inside string literals.

Usage

ショートカットキーを押すだけです。
Just press the shortcut key.

Windows / Linux

Ctrl + Shift + /

Mac

Cmd + Shift + /

完了です!
Done!

Demo

Delete Comments Demo


Option (Settings)

  • delete-comments.preserve42Header (default: true)
    • 42 school の標準ファイルヘッダーを削除せずに保持します。
      Preserve the standard 42 school file header instead of deleting it.

GitHub

https://github.com/rui319420/delete-comments

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