安装 Lua Format 插件 通过快捷键Ctrl + Alt + F来格式化当前页面内的代码.在配置文件中, auto_format_on_save设置为true, 则保存文件之前会自动格式化代码.