保存后自动格式化代码(vscode),还有一些常用的配置
settings.json里
{
"workbench.sideBar.location": "left",
"editor.fontSize": 18,
"git.confirmSync": false,
"git.autofetch": true,
"eslint.run": "onSave",
"workbench.iconTheme": "vscode-icons",
"explorer.confirmDelete": false,
"git.enableSmartCommit": true,
"vsicons.dontShowNewVersionMessage": true,
"editor.wordWrap": "on",
"files.autoSave": "onWindowChange",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"terminal.integrated.fontSize": 14,
"gitlens.advanced.messages": {
"suppressCommitHasNoPreviousCommitWarning": true,
"suppressFileNotUnderSourceControlWarning": true
},
"explorer.confirmDragAndDrop": false,
"debug.chrome.useV3": true,
"workbench.startupEditor": "newUntitledFile",
"diffEditor.renderSideBySide": true,
"gitlens.gitCommands.closeOnFocusOut": true,
"debug.console.fontSize": 15,
"workbench.colorTheme": "Visual Studio Light",
"gitlens.advanced.blame.customArguments": [],
"liveServer.settings.donotShowInfoMsg": true,
"javascript.updateImportsOnFileMove.enabled": "always",
"mssql.connections": [
{
"server": "{{put-server-name-here}}",
"database": "{{put-database-name-here}}",
"user": "{{put-username-here}}",
"password": "{{put-password-here}}"
}
],
"aliasJump.alias":{
"@": [
"/src"
],
},
"editor.minimap.enabled": false
}