做外贸在哪个网站,asp影楼网站数据库用什么软件,自己怎么建网站卖东西,app是什么公司微信开发者工具支持刷新和重建的快捷键#xff0c;所以我们可以发送一段 apple script 脚本来达到刷新/重建项目的效果#xff0c;从而免去手工切换再使用快捷键的麻烦。例如#xff1a;tell application wechatwebdevtoolsactivatedelay 0.2tell application 所以我们可以发送一段 apple script 脚本来达到刷新/重建项目的效果从而免去手工切换再使用快捷键的麻烦。例如tell application wechatwebdevtoolsactivatedelay 0.2tell application System Eventskey code {55, 15}end tellend tell这段代码可以使用命令 osascript 执行效果就是聚焦微信开发者工具然后发送 Command R 刷新界面。这里的问题是我们还是需要每次刷新都要切换到微信开发者工具界面这对于开发的流畅度还是有影响的。一个简单的解决办法就是修改开发者工具源码让它支持全局快捷键经过一番查找找到了文件/Applications/wechatwebdevtools.app/Contents/Resources/app.nw/app/dist/common/menu/menu.js,添加代码function registShortcut(key, onactive) {var option {key : key,active : onactive,failed : function(msg) {// :(, fail to register the |key| or couldnt parse the |key|.console.log(msg);}};// Create a shortcut with |option|.var shortcut new nw.Shortcut(option);// Register global desktop shortcut, which can work without focus.nw.App.registerGlobalHotKey(shortcut);}以及registShortcut(CommandShiftR, function () {e.reload()})registShortcut(CommandShiftB, function () {e.reBuild()})到 init 函数下面就可以让开发者工具支持全局刷新的热键了(CommandShiftR 和 CommandShiftB),完整文件下载然后只需要让 vim 保存 wxss 和 wxml 文件后发送快捷键就可以了。使用一键安装命令curl https://raw.githubusercontent.com/chemzqm/vim-macos/master/autoload/macos.vim ~/.vim/autoload/macos.vim安装 vim-macos 插件, 然后在 ~/.vimrc 中配置autocmd BufWritePost *.wxml call macos#keycodes(command, shift, r)autocmd BufWritePost *.wxss call macos#keycodes(command, shift, r)大功告成。(完)