Open d1y opened 3 months ago
Zed Snippets Guide read, to create Custom Snippets.
now You can insert StatelessWidget via the "stl", "stless" prefix, StatefulWidget via the "stful", "stf" prefix
P.S - There is an issue with the escape sequence not working if it is at the beginning of the line.
{
"Flutter StatelessWidget": {
"prefix": ["stless", "stl"],
"body": [
"class $0 extends StatelessWidget {",
"\tconst $0({super.key});\n",
"\t@override",
"\tWidget build(BuildContext context) {",
"\t\treturn Container();",
"\t}",
"}\n"
],
"description": "Insert Flutter StatelessWidget"
},
"Flutter StatefulWidget": {
"prefix": ["stful", "stf"],
"body": [
"class $0 extends StatefulWidget {",
"\tconst $0({super.key});\n",
"\t@override",
"\tState<$0> createState() => _$0State();",
"}\n",
"class _$0State extends State<$0> {",
"\t@override",
"\tWidget build(BuildContext context) {",
"\t\treturn Container();",
"\t}",
"}\n"
],
"description": "Insert Flutter StatelessWidget"
}
}
I am facing this as well after Signing in. Even after logging out, it still doesn't work.
Check for existing issues
Describe the bug / provide steps to reproduce it
stl
|stf
filled with incorrect label text instead of code snippetshttps://github.com/user-attachments/assets/fe213dac-c7ef-48d5-b64f-7178f7c3c598
Environment
Zed: v0.148.0 (Zed Nightly 990774247ecb61ddf69f0325d28eb3b203fc3699) OS: macOS 15.0.0 Memory: 16 GiB Architecture: aarch64
If applicable, add mockups / screenshots to help explain present your vision of the feature
No response
If applicable, attach your Zed.log file to this issue.
Zed.log