Telerik® JustCode™ by Progress

The Convert ID Selector To Class Selector refactoring allows you to easily convert an ID selector to a class selector.

Note

Language Support

Supported: CSS

Not relevant: C#, VB.NET, JavaScript, ASP.NET,XAML, HTML

To convert an ID selector to a class selector

  1. Select the ID selector you want to convert.

    ConvertIDTo Class Selected
  2. Press Alt+Insert. From the pop-up menu select Convert ID Selector To Class Selector.

  3. JustCode will let you select which usages of the ID selector to be converted. After you select them, they will be converted to class selectors.

  4. The result is:

    ConvertIDTo Class Result
Tip

To convert an ID selector to a class selector you can also navigate on the main menu. Choose JustCode | Refactor | Convert ID Selector To Class Selector.