7GIT
@7GIT

Как отключить перенос строк (классов) при форматировании CSS в VSCODE?

Как отключить перенос классов на новую строку при форматировании CSS в VSCODE?

Пример для наглядности
Как сейчас:
body,
.body {
  ...
}

Как должно быть:
body, .body {
  ...
}


Мой settings.json
{
	"update.enableWindowsBackgroundUpdates": false,
	"update.mode": "none",
	"editor.formatOnSave": true,
	"editor.formatOnType": true,
	"[html]": {
		"editor.defaultFormatter": "vscode.html-language-features"
	},
	"[jsonc]": {
		"editor.defaultFormatter": "vscode.json-language-features"
	},
	"[javascript]": {
		"editor.defaultFormatter": "vscode.typescript-language-features"
	},
	"[json]": {
		"editor.defaultFormatter": "vscode.json-language-features"
	},
	"workbench.startupEditor": "newUntitledFile",
	"editor.renderControlCharacters": true,
	"editor.renderWhitespace": "all",
	"files.autoSave": "onWindowChange",
	"editor.tabSize": 3,
	"editor.insertSpaces": false,
	"editor.detectIndentation": false,
	"editor.hover.enabled": false,
	"editor.mouseWheelZoom": true,
	"workbench.editor.closeEmptyGroups": false,
	"vscodeGoogleTranslate.preferredLanguage": "Russian",
	"vscodeGoogleTranslate.HoverTranslations": true,
	"editor.renameOnType": true,
	"workbench.colorTheme": "GitHub Dark",
	"liveServer.settings.donotShowInfoMsg": true,
	"livePugCompiler.savePath": "/html",
	"liveServer.settings.donotVerifyTags": true,
	"liveSassCompile.settings.formats": [
		{
			"extensionName": ".css",
			"format": "expanded",
			"savePath": "/dist/assets/css"
		}
	],
	"liveSassCompile.settings.includeItems": [
		"src/bundle.sass"
	],
	"liveSassCompile.settings.excludeList": [
		"**/node_modules/**",
		".vscode/**",
		".git/**"
	],
	"liveSassCompile.settings.generateMap": false,
	"liveSassCompile.settings.autoprefix": [
		"> 1%",
		"last 10 versions"
	],
	"emmet.triggerExpansionOnTab": true,
	"html.format.wrapLineLength": 0,
	"CSSNavigation.searchAcrossWorkspaceFolders": true,
	"explorer.confirmDragAndDrop": false,
	"explorer.sortOrder": "type"
}

Всем спасибо!
  • Вопрос задан
  • 250 просмотров
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы