Skip to content

Cannot format only the content within the selected range #5274

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
T-Curiosity opened this issue Mar 13, 2025 · 0 comments
Open

Cannot format only the content within the selected range #5274

T-Curiosity opened this issue Mar 13, 2025 · 0 comments

Comments

@T-Curiosity
Copy link

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

@KazariEX KazariEX changed the title 格式化效果与预期不一致的问题 Cannot format only the content within the selected range Mar 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants