如何使用代码复制功能?

How do I use the code duplicate feature?

我发现 this official topic 大体上关于此功能,但奇怪的是,它没有告诉我如何使用该功能,只告诉我它存在于某处。如何使用此功能?

您可以使用重构工具

  • 右键单击要重复使用的方法
  • Refactor
  • Find and Replace Code Duplicates ...