Noticed : XML Documentation Comments in Visual Code and Getter/Setter to Methods Shortcut

Two small things that I noticed today :

XML Style Documentation Comments in Visual Studio Code

If you want XML Style Documentation Comments in Visual Studio Code like in Visual Studio you have to enable them :

Go to File->Preferences->Settings

Then go to Formating and then turn on „Format on Type“ (its turned off by default)

  If you type then /// above a class or method definition, it will add the <summary> block for you and add the newline /// if you add a line inside it, just like it is default in Visual Studio Code ! I missed that so much.

    /// <summary>
    /// contains the written down notes and thoughs
    /// </summary>

Getter/Setter into Methods

If you need to use Getter/Setters (Properties) for any reason but you want to use actual methods, you can use Visual Code Actions to do that without writing.

First add a Getter/Setter with an action for your field. After that you can use a new action to convert the property from that syntax to actual methods ! (sorry for the german, „durch Methoden ersetzten“ means „replace with methods“)

After that you have neat real methods. I like that way more.