Back to Devexpress

How to: Add a Comment to the Start of a Section

coderushforroslyn-401396-getting-started-examples-organize-members-how-to-add-a-comment-in-the-start-of-a-section.md

latest1.1 KB
Original Source

How to: Add a Comment to the Start of a Section

  • May 30, 2022
  • 2 minutes to read

Follow the steps below.

  1. Open the Editor | All Languages | Organize Members options page to configure the Member Organization rules feature.

  2. Select a rule (for example, “Fields”).

  3. Click the Comment button.

  4. You can change the suggested comment name, for example, to “Fields…” in the corresponding text box. Press Enter to apply the new region name.

  5. Click Apply to save changes or click OK to save changes and close the Organize Members options page.

  6. Place the caret in a class member in the code snippet below:

  7. Press Ctrl + . or Ctrl + ~ to invoke the Code Actions Menu.

  8. Choose Organize Members from the menu and press Enter.

CodeRush groups fields according to the Organize Members rules and creates the “Fields…” comment for fields.

See Also

Organize Members