是否有可能通过做这样的事情:
如果输入f.name.a.b {{tab press}}
=> WebStorm将产生
function fname(a, b)
{
}
或者在打字稿的情况下,如果我输入c.Name.a.string {{tab press}}
=>它会产生:
class Name {
a: string;
}
是否可以在WebStorm中实现类似的目标?
我有可能在网络风暴中做出类似的事情
您可以使用实时模板进行类似的操作:https://www.jetbrains.com/webstorm/help/creating-code-constructs-by-live-templates.html
各种其他IDE通常将其称为snippets。