You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
VSCode offers several "Extract to constant" refactorings that move a literal value into a constant. I often need the reverse operation: inlining a value that is currently defined in a constant.
Here are some examples.
// Before:functionadd(a: number,b: number){constresult=a+b;returnresult;}// After inlining `result`:functionadd(a: number,b: number){returna+b;}
// Before:constmessage='Processing successful.';console.log(message);// After inlining `message`:console.log('Processing successful.');
@JacksonKearl Thank you for your fast reply! I'm a bit confused, though. It is my understanding that the code for "Extract to constant" is part of this repository, not TypeScript. Am I missing something?
VSCode offers several "Extract to constant" refactorings that move a literal value into a constant. I often need the reverse operation: inlining a value that is currently defined in a constant.
Here are some examples.
For reference, here is the documentation of that feature in ReSharper.
The text was updated successfully, but these errors were encountered: