美文网首页
vscode_插件_shell格式化工具安装

vscode_插件_shell格式化工具安装

作者: 卡卡土司 | 来源:发表于2018-08-18 10:50 被阅读0次

参考:https://www.jianshu.com/p/484e5be21786

vscode版本:1.26.0 (在此版本上安装)

下载地址:https://github.com/mvdan/sh/releases(下载64位的)

目前最新版本:

https://github.com/mvdan/sh/releases/download/v2.5.1/shfmt_v2.5.1_windows_amd64.exe

在vscode的安装目录建立tools_plugins(安装其他第三方插件),将 shfmt 放入此目录

D:\Program Files\Microsoft VS Code\tools_plugins\shfmt_v2.5.1_windows_amd64.exe

插件启用设置:文件 → 选项  → 设置 →  shellf ( 输入shellf )  →  修改配置项

修改后保存

需要格式化的内容,右键 → 格式化文件(会将整个编辑窗口的内容都格式化

相关文章

网友评论

      本文标题:vscode_插件_shell格式化工具安装

      本文链接:https://www.haomeiwen.com/subject/ylaxiftx.html