VS No longer Properly Capitalizes Variable Names with Resharper
Using Resharper with VS Community 2022, on Visual Basic Projects
Have noticed that Visual Studio will no longer fix variable names in code to match changes to their definition. E.g.
Dim testControl as Control
…
testcontrol = me.ActiveControl
^^ Both the “testcontrol” and the “me” in the line above no longer obey capitalization of their source elements.
Is there a preference fix somewhere for this?
Please sign in to leave a comment.
thank you for contacting us.
Please take a look at the following settings: ReSharper | Options | Code Editing | Visual Basic | Naming Style
Thank you!
Those are all fine--the actual question/problem, however, is that ReSharper has apparently turned off the ability for VS to match up the variable names as defined. I.e., if “testControl” is the defined name, the usage below ("testcontrol") should have updated to match--it no longer does with ReSharper instaled.
thank you for the answer.
What version of ReSharper do you have?
Do you use editorconfig?
Thank you!
ReSharper 2024.2.5
I'm not familiar with editorconfig – is this a setting/separate program/? (I'm new to Resharper)
thank you for the answer.
EditorConfig is a file format and collection of text editor plugins for maintaining consistent coding styles between different editors and IDEs.
As for the problem with naming, I'm unable to reproduce this issue on my side. 'testControl' is updating as expected.
Could you please take some gif or video with the issue?
Also please export your settings (ReSharper | Manage Options | Import&Export | Export to file) and send us.
You can upload it here: https://uploads.jetbrains.com/
Thank you!