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

comment_eliminator

elekingmole

|
6 installs
| (0) | Free
To eliminate comment
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

commelim README

This extension have a function only remove comment line start with "//" in main.dart and "#" in pubspec.yaml Flutter autogenerated.

Please, do command at main.dart or pubspec.yaml. For other text file, this maybe excute correctly too, but I don't test. And I tested only Windows.

Since the purpose is only to remove line comments inserted when a project is generated, there are some comments that cannot be removed, such as "/**/".

Flutterでプロジェクトを生成した際に、main.dartとpubspec.yamlに自動挿入されるコメント部分を削除する為の拡張機能です。 main.dart または pubspec.yaml でコマンドを実行してください。("Eliminate Comment"か"commelim"で候補が出るはず。) 他のテキストファイルでも、動くかもしれませんが、試していません。 Windowsのみでの動作確認しかしていません。

プロジェクト生成時に挿入される行コメントの除去のみを目的としているので"/**/"等、除去できないコメントもあります。

Known Issues

In pubspec.yaml, Some behavior is strange. (Position of "version:" after execution.)

正規表現がおかしいのか、pubspec.yamlの"version:"の位置が若干おかしいので手作業で改行なりしてください。

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