重命名IntelliJ中的TypeScript属性

时间:2018-11-20 10:33:16

标签: typescript intellij-idea refactoring

我在TypeScript项目中有两个简单的类:

export class A1 {

  property1: string;

}

export class A2 {

  property1: string;
  a1: A1 = new A1();

  doX() {

    this.a1.property1 = '3';

  }

}

当我通过property1重命名类A2上的shift+f6时,对this.a1.property1的调用也会被新名称更改。是否有解决方法或解决方法?重命名几乎是不可能的。

0 个答案:

没有答案
相关问题