In Visual Studio 2019, when writing .net (C# or VB.net), is there a way to automatically prefix members/ properties of an object with their respective "self" reference?
Eg in c#, automatically prepending "this.
" when referencing members of a class from within the class.
Eg in VB.net, automatically prepending "me.
" when referencing members of a class from within the class.
Using an extension to do this is fine, if one exists.
this.
prefix in front of every property?Edit-Advanced-Format Document
orCTRL+K+D
to reformat the file currently opened: it will add all the missingthis/me
in the current file. See the option inCode Style-Formatting-General-Perform additional code cleanup...