
点击左下角图标,选择settings(设置)

(推荐学习:java视频教程)
进入settings.json

面板左边为系统提供配置简介,右边为自己配置,我们需要在右边用户配置中加入两个配置内容
"editor.tabSize": 4:指定一个tab等于多少个空格,例如此处指定4就像等于4个空格,2就等于两个空格
"editor.detectIndentation":false :必须指定!!否则指定的tab大小将不起效果。

最后,重启vscode即可。
推荐教程:vscode教程
以上是vscode如何设置tab键大小的详细内容。更多信息请关注PHP中文网其他相关文章!