【问题标题】:VueJs renaming properties in <template> doesn't rename them in <script>VueJs 在 <template> 中重命名属性不会在 <script> 中重命名它们
【发布时间】:2021-06-11 14:43:23
【问题描述】:

我正在使用 Vuejs3 和 Intellij。

我想通过简单地使用“重命名”命令 (shift+ F6) 来重命名我的脚本的一个属性,该属性也在我的模板中使用。

例如,我有:

<template>
  <login" :user="user"></login>
</template>

<script>
export default defineComponent({
  setup() {
    const user = User()

    return {user}

)}
</script>

当我尝试使用 IDE “rename” 命令重命名 const “user” 时,它只会在脚本内重命名它,而不是在模板内。

有没有办法配置 IDE 以在任何地方重命名属性?

【问题讨论】:

  • 嗨,你试过这个jetbrains.com/help/clion/…
  • 重命名对话框中是否启用了“搜索文本匹配项”?
  • 是的,启用了,但是不起作用

标签: vue.js intellij-idea rename vuejs3


【解决方案1】:

问题已在WEB-44904跟踪,请关注它以获取更新

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2020-11-28
    • 1970-01-01
    • 2023-01-26
    • 2012-07-25
    • 2013-02-12
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多