Renaming a symbol can still show a preview with editor.rename.enablePreview disabled #13154
Unanswered
Caleb Chan (calico32)
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hello!
I use the rename symbol tool a lot, and I don't like the preview pane that shows up when renaming symbols in a C/C++ file. I understand its intention and use case, but I've never wanted to check/uncheck anything in the preview pane and always just accept the refactor (the extension is usually pretty good with finding references). The pane steals focus from the editor window though and forces me to mouse over and click to accept and then another click/keystroke to refocus the editor, which really breaks my workflow.
Even with the vscode setting
editor.rename.enablePreviewset tofalse, the preview pane still shows up whenever a symbol name appears in a comment or a string (which I do not care about renaming). Is this intended behavior? I never want to rename non-references anyway and it seems that the vscode setting should be respected if I choose to disable previewing rename refactors.Besides the vscode setting, is there a setting/config within the extension to disable the preview from even being attempted?
Here is a minimal repro for this (try renaming foo or bar with
editor.rename.enablePreviewdisabled):I also saw #12843 which seems to share my thoughts but it looks like it didn't go anywhere. Disabling
editor.rename.enablePreviewas suggested in a comment didn't change the behavior.Thank you in advance!
By the way - OS: Arch Linux x64, Visual Studio Code version: 1.97.0-insider, Extension version: 1.23.3 (2025-01-09, 18:31:58), if it matters.
All reactions