7GIT
@7GIT

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

Как отключить перенос строк при форматировании HTML в VSCODE?
Некоторые теги переносят, атрибуты и классы на новую строку.

Картинка для наглядности
5fa3de3ccad6b054185792.png

Мой 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": "One Dark Pro",
	"liveServer.settings.donotShowInfoMsg": true,
	"livePugCompiler.savePath": "/html",
	"liveServer.settings.donotVerifyTags": true,
	"liveSassCompile.settings.formats": [
		{
			"extensionName": ".css",
			"format": "expanded",
			"savePath": "css"
		}
	],
	"liveSassCompile.settings.excludeList": [
		"**/node_modules/**",
		".vscode/**",
		".git/**"
	],
	"liveSassCompile.settings.generateMap": false,
	"liveSassCompile.settings.autoprefix": [
		"> 1%",
		"last 10 versions"
	],
	"emmet.triggerExpansionOnTab": true,
	"editor.wordWrap": "on"
}


Всем спасибо!
  • Вопрос задан
  • 3361 просмотр
Решения вопроса 1
@cheeroque
html.format.wrapLineLength в настройках поставьте в 0
Ответ написан
Пригласить эксперта
Ваш ответ на вопрос

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

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