Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VB.Net Keyboard Shortcut to auto-generate a Property

As the title suggests I am looking for the key sequence to generate the standard Property syntax in a vb.net class. Example below so there is no confusion on what I am asking for. Thanks in advance!

Public Property MyProperty() As String
        Get
            Return _MyProperty
        End Get
        Set(ByVal value As String)
             Me._MyProperty= value
        End Set
    End Property
like image 479
Stryder Avatar asked Sep 17 '10 15:09

Stryder


People also ask

What is Ctrl Shift F in Visual Studio?

Ctrl-Shift-F is used to find all the ocuurance of a string with in entire solution and display find result window as shown below. Ctrl-F is used to find a string in the current document, project and all open documents one by one.


1 Answers

Type "property" and hit tab twice:

Private newPropertyValue As String
Public Property NewProperty() As String
    Get
        Return newPropertyValue
    End Get
    Set(ByVal value As String)
        newPropertyValue = value
    End Set
End Property
like image 54
asawyer Avatar answered Oct 17 '22 13:10

asawyer