vscode_插件_shell格式化工具安装
2018-08-18 本文已影响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 ) → 修改配置项

修改后保存

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

