While you are editing a variable name in Visual Studio 2015 or Visual Studio 2017, 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 - 2017 Vlasov Studio (Visual Studio extensions and tools)