Code Action: Inline Variable #5704
elenakrittik
started this conversation in
Enhancement
Replies: 1 comment
-
Moving this issue to discussion as an enhancement request for comments and upvotes. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Similar to rust-analyzer's inline-local-variable and inline_type_alias.
For example, if i put my cursor at the expression in f-string here:
I want to be able to inline
name
into the f-string, so that the code turns into this:But if
name
was used by something else as well, i want to keep it (to not break the code, of course):Beta Was this translation helpful? Give feedback.
All reactions