VB Byval I don't need it

I do not need this declaration because it makes my code big and unreadable.

Is there a way to make Visual Studio (VS) not add it automatically. Every time I delete it, it is added back to VS.

Function DoStuff(Tom As String) 

NOT

 Function DoStuff(ByVal Tom As String) 
+4
source share
3 answers

Stop formatting in Tools / Options / Text Editor / Main / VB Concrete / Excellent code listing (reformatting).

+5
source

It really makes your code more understandable for non-believers. I do not think that they impair the readability of the code, but vice versa.

+9
source

Install Service Pack for Visual Studio 2010 1. It does not insert a ByVal ad.

+7
source

Source: https://habr.com/ru/post/1303383/


All Articles