Telerik® JustCode™ by Progress

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

Note

Language Support

Supported: CSS

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

To convert a class selector to an ID selector

  1. Select the class selector you want to convert.

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

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

  4. The result is:

    Convert Class ToID Result
Tip

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