|
|
@ -127,3 +127,29 @@ OpenTheDoor |
|
|
|
快速在头文件和目标文件之间切换 |
|
|
|
alt+o |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## shell-format |
|
|
|
|
|
|
|
```bash |
|
|
|
ExtensionId:foxundermoon.shell-format |
|
|
|
|
|
|
|
配置说明 |
|
|
|
#################################### |
|
|
|
1. 安装插件 |
|
|
|
vscode搜索foxundermoon.shell-format,然后安装 |
|
|
|
2. 安装shfmt(ubuntu) |
|
|
|
snap install shfmt |
|
|
|
3. 确定shfmt路径 |
|
|
|
>where shfmt |
|
|
|
/snap/bin/shfmt |
|
|
|
PS:注意安装完后需要新打开一个terminal刷新下环境变量,才能看到shfmt |
|
|
|
4. 配置插件 |
|
|
|
ctrl+p,Open Settings (JSON),配置中添加下面配置 |
|
|
|
"shellformat.path": "/snap/bin/shfmt" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
``` |
|
|
|
|