Inline local refactoring
See original GitHub issueProposal Add a refactoring to inline a local variable. Example:
function generatePipeName(): string {
const hexString = makeRandomHexString(40);
return getPipeName(hexString);
}
The Inline local
refactoring on hexString
would result in:
function generatePipeName(): string {
return getPipeName(makeRandomHexString(40));
}
Issue Analytics
- State:
- Created 6 years ago
- Reactions:75
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Inline Temp - Refactoring.Guru
Inline local variables are almost always used as part of Replace Temp with Query ... This refactoring technique offers almost no benefit in...
Read more >Inline | IntelliJ IDEA Documentation - JetBrains
The Inline refactoring lets you reverse the Extract refactoring for a method , constructor, parameter, superclass, anonymous class, ...
Read more >Inline function refactoring #27070 - microsoft/TypeScript - GitHub
The inline refactoring is very complicated to implement though. Local variables might need to be renamed to prevent accidental shadowing and pattern ...
Read more >Inline a temporary variable refactoring - Visual Studio
How-to · Highlight or place the text cursor inside the temporary variable to be inlined: C#:. Highlighted code - C# · Next, do...
Read more >Refactoring source code in Visual Studio Code
Refactoring support for other programming languages is provided through VS Code extensions that contribute language services. The UI and commands for ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
https://github.com/nicoespeon/abracadabra#inline-variable
Anyone suggest a VSCode extension that does this in lieu of waiting for official support?