Refactor flutter code not avilable in vs code

Viewed 1037

vs code suddenly not showing the refactoring option on any code on dart.. If I press ctrl+shift+R on any widget or class it says no refactoring enter image description hereavailable..

2 Answers

Turning dart lps analyzer off solved the problem for meenter image description here

Place your cursor in the widget you want to edit and use CTRL + . shortcut to see the options. Use CMD + . for MacOS. To do it manually in VS Code.

And For Android Studio its option + return in Mac and Alt + Enter in Windows.

See this For A Reference

Related