Little Monkey
Little Monkey

Reputation: 6157

VueJs renaming properties in <template> doesn't rename them in <script>

I'm using Vuejs3 with Intellij.

I would like to rename a property of my script that is used also in my template by simply using the "rename" command (shift+ F6).

For example, I have:

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

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

    return {user}

)}
</script>

When I try to rename the const "user" with the IDE "rename" command, it renames it only inside the script, but not inside the template.

Is there a way to configure the IDE to rename the properties everywhere?

Upvotes: 0

Views: 457

Answers (1)

lena
lena

Reputation: 93748

The issue is tracked at WEB-44904, please follow it for updates

Upvotes: 2

Related Questions