[vscode] settings.json

{
	"explorer.confirmDelete": false,
	"explorer.confirmDragAndDrop": false,
	"editor.insertSpaces": false,
	"vetur.format.defaultFormatter.html": "prettier",
	"editor.renderWhitespace": "all",
	"window.zoomLevel": 0,
	"files.trimTrailingWhitespace": true,
	"[javascript]": {
		"editor.defaultFormatter": "esbenp.prettier-vscode"
	},
	"prettier.tabWidth": 4,
	"prettier.useTabs": true,
	"prettier.singleQuote": true,
	"prettier.jsxSingleQuote": true,
	"editor.formatOnSave": true,
	"prettier.printWidth": 100,
	"prettier.semi": false,
	"extensions.ignoreRecommendations": false,
	"namespaceResolver.highlightOnOpen": true,
	"namespaceResolver.sortAlphabetically": true,
	"[php]": {
		"editor.defaultFormatter": "kokororin.vscode-phpfmt"
	},
	"eslint.autoFixOnSave": true,
	"eslint.validate": [
		"javascript",
		"javascriptreact",
		{
			"language": "html",
			"autoFix": true
		},
		{
			"language": "vue",
			"autoFix": true
		}
	]
}

以上配置对于vscode上编写代码,并在保存时自动格式化时非常好用,记录下 !

你可能感兴趣的:(IDE)