(No intention to start a religious war on coding style, I just need to solve the problem at hand)
I have just been asked to change all variable declarations across the solution to use explicit typing, i.e. anything like:
Dim Result = 3 + 5
should be converted to:
Dim Result As Integer = 3 + 5
Obviously this can't be done through Find/Replace or even with Regex. The two other possibilities I thought of were:
- Resharper: Which I just discovered can do this only for C#, not VB.NET.
- Macros: Which have been removed since VS2012 (was a news for me).
Is there an alternate way of automating this tedious job? The solution contains hundreds of thousands of lines of code, so doing it by hand is not an option.
This is for VS2017 Community.