When you first create a Flutter Project it begins with the counter app in main.dart. This app has a lot of comments in it that you don't need if you have moved on from learning about how the counter app works. So if you want to remove the comments all in one go then follow these steps. Open Find and replace. You can either do ctrl+R or you can go to Edit >hover over Find> click Replace. In the find, field enter: \/\/.* (this finds all the // comments, also that is not a W it is a forward and backward slash together twice.\ / \ /) Leave the replace field blank Click replace all Now all the unnecessary comments are gone. Do ctrl +S to autoformat your code to get rid of the large spaces the comments left behind.
My Flutter Developer Journey
A behind the scenes look at how I create apps and become a Flutter Developer.