VSCode – How to disable automatic symbol renaming?

  Kiến thức lập trình

For the last week or so I’ve noticed something new in VSCode where sometimes when I highlight a variable, it’ll highlight that variable and all other instances of that variable in red. When I change the name in one location it’ll change it elsewhere automatically. Functionality that’d be neat in its own right but I can’t figure out how to turn it off and it’s incredibly disruptive, see screenshots. Unsure if it’s a new feature or some shortcut I accidentally enabled but I’ve tried looking through the release notes and bisecting my extensions to make sure it’s not that and haven’t had success.

Text before changing one variable

Text after changing one variable, others changed automatically