[Flutter] How to remove all comments in starter app
How to do it in Visual Studio Code.
Environment
- Visual Studio Code
- OS: Mac or Windows
For macOS
Instructions
- Run
flutter create
in Terminal. - Open main.dart in Visual Studio Code.
Command + Option + F
(⌥⌘F) [Replace].Command + Option + R
(⌥⌘R) [Use Regular Expression].- Type
//.*
in search form. - Press the Tab key to go to the replace form.
Command + Enter
(⌘Enter) [Replace All].Command + S
(⌘S) [Save], AutoFormat.
For Windows
Instructions
- Run
flutter create
in Terminal. - Open main.dart in Visual Studio Code.
Control + H
[Replace]Alt + R
[Use Regular Expression]- Type
//.*
in search form. - Press the Tab key to go to the replace form.
Control + Alt + Enter
[Replace All]Control + S
[Save], Auto-format.