In VS Code on a Mac with Flutter extensions installed, if you hit Cmd + .
then you will see this popup to wrap a widget:
Is there a way to customize one of those options? I would like to be able to wrap a widget inside GetX’s Obx
like this:
Obx(()=>
WIDGET
)
Being able to do this would save me a lot of keystrokes. 😅 Thanks!
3
Answers
I didn’t find a way to customise it but I use a snippet expander to accomplish the same thing. I use Atext on a Mac so ;obx would expand to Obx(()=>)
You can use GetX Snippets extension in VS code.
You can use the Getx Snippets extension/plugin for both
VScode
andIntelliJ
:Getx Snippets extension – VScode
Getx Snippets plugin – IntelliJ