While you are editing a variable name in Visual Studio 2017, Visual Studio 2019 or Visual Studio 2022, a dashed outline is displayed around it:
It's a new feature of Visual Studio 2015 that works for C# and Visual Basic languages. The same outline is displayed when you change a method, class or namespace name.
If you find this outline distracting, install the free Plain Rename extension that completely removes it.
Copyright 2008 - 2022 Vlasov Studio (Best in class Visual Studio extensions and tools)