dotnet / dotnet/project-system

Additional feature for renaming file should rename class

Open
#227 4 comments 0 reactions 0 assignees View on GitHub
Triage-Approved
Dominant language
C#
Stars
1k
Forks
415
PR merge metrics
No merged PRs in 30d

Description

Related to #109
- [ ] It's common to put a '.' or '+' between nested classes, ie "Outer.Inner.cs", we should rename all of these as well.
- [ ] We should handle generics, ie when 'Foo`1.cs' or 'Foo.cs' is renamed, let it rename a type called Foo in the file.
- [ ] If someone copy and pastes a file, we should let you rename the copy 'Foo - Copy.cs' -> 'Bar.cs' and only update just the type within that file.
- [ ] Prompt user for rename based on option
- [ ] Add "Remember this" to the prompt, so that you have uncheck that box from the dialog itself.

Contributor guide

Open the contributing guide

Research direction

Start by reading related issue #109 and tracing the existing file-renaming behavior in the project system. Review each checklist item as a separate requirement, including nested classes, generics, copied files, prompting, and remembering the prompt choice. Done means the listed rename cases and prompt options are handled and verified.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.