Is there no "Remove Widget" functionality in VSCode, for Flutter?

500

Check the keybinding of Refactor command

ss1

As you see on SizedBox you see the remove option.

enter image description here

Share:
500
Rune Hansen
Author by

Rune Hansen

Mid-level full stack developer. 6 years full time professional working experience, mostly in MS Environments. Currently I am into Flutter & Dart.

Updated on January 01, 2023

Comments

  • Rune Hansen
    Rune Hansen 10 months

    When I press Cmd + . in VSCode I get various options to add various Widgets to my Widget tree.

    But I also find it quite handy to be able to remove a widget by a single action from that Widget tree.

    But when I press Cmd + . I do not see any "Remove Widget" option.

    Is it not there? Can I get that functionality?

    • snap
      snap about 2 years
      You actually have that feature in Cmd + . but depends if the widget tree or that specific widget is properly structure from the parent down to the child/ren.
    • Rune Hansen
      Rune Hansen about 2 years
      Yeah, I have discovered the "Remove this widget", sometimes when I press Cmd + . - Thank you.
  • Rune Hansen
    Rune Hansen about 2 years
    Ah yeah I see that. On this particular Mac the shortcut is: Ctrl + Shift + R - Thank you folks!