Telerik® JustCode™ by Progress

The Add Default Modifier refactoring allows you to add a default access modifier for any type or class member.


Language Support

Supported: C#

Not supported: VB.NET

Not relevant: ASP.NET, XAML, HTML, JavaScript

To add a default modifier

  1. Place the caret over a type or a class member with missing access modifier.

  2. Press Alt+Insert. From the pop-up menu, select Add Default Modifier.

    Add Default Modifier Selected
  3. The result is:

    Add Default Modifier Result

The command is also included in our Clean Code feature so you can execute it for a whole file.

See Also