skip to Main Content

How do I remove all the the comments in this file at once ?
I don’t wanna go line by line and erase all the comments or select an area + backspace multiple times.
Is there any shortcut?
code with comments

code without comments

3

Answers


  1. You do not have to remove the comments if you did not create them in the first place. You can create a new Flutter project without comments following these steps:

    1. open Command Palette in VS Code
    2. type Flutter: New Project
    3. select Flutter Application (empty)

    or simple use the command flutter create my_app -e. For details, you can refer to the flutter create --help command.

    Login or Signup to reply.
  2. Here’s a similar questions with a detailed accepted answer: VSCode: delete all comments in a file

    Login or Signup to reply.
  3. the extension Remove Comments supports Dart

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search