dotnet/roslyn

After copying a class and renaming the class-file and choose yes to class-rename too mix up files

Offen

#49.211 geöffnet am 06.11.2020

 (10 Kommentare) (1 Reaktion) (1 zugewiesene Person)C# (4.257 Forks)batch import
Area-IDEDeveloper CommunityFeature - Renamehelp wanted

Repository-Metriken

Stars
 (20.414 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 6T 17h) (256 gemergte PRs in 30 T)

Beschreibung

This issue has been moved from a ticket on Developer Community.


[severity:It's more difficult to complete my work]

  1. In a folder (xx) i have a class (yy).
  2. Copy (xx) to (zz)
  3. Rename (xx) to (kk)

Now Visual Studio asks if i want to refactor the class name to match the filename as well, I pick "Yes".

Now Visual Studio renames the classname (refactor) in both new new copy in folder (zz) and the copied source in folder (xx).

This is a bug!


Original Comments

Feedback Bot on 10/28/2020, 11:55 PM:

Sara Liu [MSFT] on 10/29/2020, 01:55 AM:

Feedback Bot on 11/6/2020, 09:37 AM:


Original Solutions

(no solutions)

Contributor Guide