Skip to content

Cannot format only the content within the selected range #5274

Open
@T-Curiosity

Description

@T-Curiosity

Vue - Official extension or vue-tsc version

2.2.8

VSCode version

1.98.1

Vue version

5.0.8

TypeScript version

no used

System Info

package.json dependencies

Steps to reproduce

<div class="drop-overlay" :class="{ 'active': isDraggingOver && dragOverType === '模特' }"
  @dragover.prevent="handlePaneDragOver($event, '模特')" @dragleave.prevent="handlePaneDragLeave"
  @drop.prevent.stop="handlePaneDrop($event, '模特')">
  <div class="drop-zone-hint">
    <i-ep-upload-filled class="upload-icon" />
    <p>释放鼠标上传模特素材</p>
  </div>
</div>

</div>
</template>

复制以上代码 新建一个 vue文件,当然你也可以随意创建一个格式不太符合预期的vue
例如 代码的tab过多 等情况
使用如下步骤:
1.选中特定代码
2.菜单右键 格式化选定内容

What is expected?

仅对选定内容进行格式化,而不是整个文档

What is actually happening?

整个文档都被格式化了,而不是仅选定的内容

Link to minimal reproduction

No response

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions