type
status
date
slug
summary
tags
category
icon
password
C++函数自动补全括号
- 打开设置,搜索
autoClosingBrackets
将Editor: Auto Closing Brackets状态修改为languageDefined
- 将C_Cpp: Autocomplete Add Parentheses的复选框勾上

程序自动格式化
- 安装Prettier扩展
- 打开设置,搜索Default Formatter,下拉框中选择Prettier - Code formatter
- 设置中搜索Format On Save,将复选框勾上
settings.json配置
调整缩进
- 打开设置,在设置中搜索
tree
,并对结果中的indent
进行调整,往大的加就可以了,点击输入框,然后按上下键就可以便捷的调整了。(实际加的过程中,感觉加好几次,目录缩进才会变一次)

- 默认情况下是8,这里调整成了22。以下是两种情况的对比:
- 默认:
- 修改后:


- Author:Lianzhao
- URL:https://lianzhao.vercel.app//article/vscode
- Copyright:All articles in this blog, except for special statements, adopt BY-NC-SA agreement. Please indicate the source!