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
feat: add out of the box keybinding to unleash TypeScript's mechanism of overriding variable name in string & comments in renaming files (ctrl+shift+enter) 🚀
Copy file name to clipboardExpand all lines: README.MD
+28Lines changed: 28 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -228,6 +228,34 @@ Some settings examples:
228
228
> Note: changeSorting might not preserve sorting of other existing suggestions which not defined by rules, there is WIP
229
229
> Also I'm thinking of making it learn and syncing of most-used imports automatically
230
230
231
+
## Rename Features
232
+
233
+
There is builtin mechanism to rename variable occurrences in strings & comments, it is disabled in VS Code without a way to enable it.
234
+
235
+
However this extension also has builtin keybinding `Ctrl+Shift+Enter` that can be pressed when input box is visible to enable aforementioned behavior for renaming with preview.
236
+
237
+
But note renaming in strings & comments will happen only for files in which variable is actually referenced.
238
+
239
+
You can add this to `keybindings.json` to disable previewing before renaming:
0 commit comments