microsoft / microsoft/TypeScript
Shortcut for creating local variable from all occurrences
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 111k
- Forks
- 14.3k
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 117
Description
If there is not already, there should be support for refactoring(creating local variable of) all instances of a selection. The images show a before and after of what I am looking to do. I tried creating a shortcut with multiple commands where the first selects all instances then the second refactors the lines, but this is not yet possible.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names no files, tests, or entry points. Start by determining whether the request belongs in the editor's shortcut or refactoring subsystem and inspect how selecting all occurrences is currently handled. Done means a shortcut can apply the requested local-variable refactoring to all selected occurrences.
Written by the indexing model from the issue text.
Assessment
- Domain
- developer-experience, tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100