Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/visual-studio-code/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Visual studio code VSCode,禁用断字_Visual Studio Code_Vscode Settings_Formatter_Prettier - Fatal编程技术网

Visual studio code VSCode,禁用断字

Visual studio code VSCode,禁用断字,visual-studio-code,vscode-settings,formatter,prettier,Visual Studio Code,Vscode Settings,Formatter,Prettier,告诉我如何在VSCode中关闭结束标记的包装 使用vue-设置设置: 编辑器:Word Wrap Column=300 Vetur›Format›默认格式化程序:HTML-指定的prettyhtml 在其设置中也显示了 "prettyhtml": { "printWidth": 300, "singleQuote": false, "wrapAttributes": false, &q

告诉我如何在VSCode中关闭结束标记的包装

使用vue-设置设置:

编辑器:Word Wrap Column=300

Vetur›Format›默认格式化程序:HTML-指定的prettyhtml

在其设置中也显示了

"prettyhtml": {
    "printWidth": 300,
    "singleQuote": false,
    "wrapAttributes": false,
    "sortAttributes": false
}
我希望是这样

<div class="col-10">
  <input
    v-model="form.shortName"
    type="text"
    class="form-control"
    placeholder="Краткое наименование"
    name="shortName"
    :class="{ 'is-invalid': typesubmit && $v.form.shortName.$error }"/>
  <div v-if="typesubmit && $v.form.shortName.$error" class="invalid-feedback">
    <span v-if="!$v.form.shortName.required">Обязательное поле.</span>
  </div>
</div>

Обязательное поле.
格式化后的编辑器会给出

        <div class="col-10">
          <input
            v-model="form.shortName"
            type="text"
            class="form-control"
            placeholder="Краткое наименование"
            name="shortName"
            :class="{
              'is-invalid': typesubmit && $v.form.shortName.$error
            }"
          />
          <div
            v-if="typesubmit && $v.form.shortName.$error"
            class="invalid-feedback"
          >
            <span v-if="!$v.form.shortName.required"
              >Обязательное поле.</span
            >
          </div>
        </div>

Обязательное поле.
基本上了解如何关闭换行标志“>”

您可以尝试设置:

“html.format.wrapatributes”:“自动”
“自动”是指:

仅当超过行长度时才换行属性

可以通过以下不同参数定义线长度:

//每行最大字符数
“html.format.wrapLineLength”:120
此外,如果上述参数不能提供所需的结果,请尝试修改此参数

"prettier.printWidth": 300

这回答了你的问题吗?没有帮助,尝试了除自动(html.format.wrapatributes)之外的其他方法-结果0,html.format.wrapLineLength当前为0,这意味着已禁用