使用下面的代码,我想将 $2 中的变量转换为小写,但我不能让它工作。
"Build Model": {
"prefix": "mod",
"body": [
"import '${1:../backend.dart}';",
"",
"class ${2:Class} extends ManagedObject<_$2> implements _$2 {}",
"${2/(*)/${2:/downcase}/}",
"${2:/downcase}" //would be nice to be able to do this
"@Table(name: \"${2/(*)/${2:/downcase}/}\")",
"class _$2 {",
"@Column(primaryKey: true, autoincrement: true, indexed: true)",
"int id;",
"$3",
"}",
""
],
"description": "Build a data model"
},