Check below settings:
If got below error message, just run the command:
The "goformat" command is not available. Run "go install -v winterdrache.de/goformat/[email protected]" to install.
Open a file, click 'Tab Size: 4' in the status bar:
Select 'Indent Using Spaces':
Select '4'.
Then you can see 'Spaces: 4' in the status bar:
All done.
When you save the file, all tab indentations will be replaced by 4 spaces and new tab indentation will be replaced by 4 spaces too.
标签:status,tab,VSCode,Spaces,Tab,goformat,Go,spaces From: https://www.cnblogs.com/zhangzhihui/p/17481151.html