commelim READMEThis 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 IssuesIn pubspec.yaml, Some behavior is strange. (Position of "version:" after execution.) 正規表現がおかしいのか、pubspec.yamlの"version:"の位置が若干おかしいので手作業で改行なりしてください。 |