1、在WebStorm中创建函数的快捷键 Editor --> Live Templates --> JavaScript --> 右上角+ --> 1、Live Templates --> Abbreviation: fn , Description: create function --> Template text Template text: function $name$() { $END$ } 使用: fn, 按Tab键。