as detailed in the title:
I am not familiar with the configuration when using vscode for the first time. Ask for advice!
eslint, is currently installed and configured with the following code:
{
"workbench.colorTheme": "Solarized Light",
"terminal.integrated.rendererType": "dom",
"terminal.integrated.shell.windows": "C:\\WINDOWS\\System32\\cmd.exe",
"eslint.autoFixOnSave": true,
"eslint.validate": [
"javascript",
"javascriptreact",
{
"language": "js",
"autoFix": true
},
{
"language": "react",
"autoFix": true
}
],
"editor.renderIndentGuides": true,
"editor.tabSize": 4,
"editor.detectIndentation": false
}
wants to implement. After formatting, it is all indented by 4 spaces, but it still has no effect, as follows:
so there are two current requirements: 1, to achieve one-click formatting of jsx code; 2, all codes 4 space indentation; in fact, the above user settings have been configured, but I do not know why there is no effect, ask for advice!