How to How to add widget wrappper Add command to package.json { "contributes": { "commands": [ { "command": "flutter-plus.wrap-listenablebuilder", "title": "Wrap with ListenableBuilder" } ] } } Add snippet to src/commands/wrap-with.command.ts const snippetListenableBuilder = (widget: string) => { return `ListenableBuilder( listenable: \${1:listenable}, builder: (context, _) => ${widget}, )`; }; export const wrapWithListenableBuilder = async () => wrapWith(snippetListenableBuilder); Add action to src/code-actions/code-action-wrap.ts return [ { command: "flutter-plus.wrap-listenablebuilder", title: "Wrap with ListenableBuilder", } ] Add command to src/extension.ts export function activate(context: vscode.ExtensionContext) { context.subscriptions.push( commands.registerCommand( "flutter-plus.wrap-listenablebuilder", wrapWithListenableBuilder ) ); }