Docs

The perfect choice for your next project

Global Renames

We took refactoring to a completely new level. Often you won't need to leave the HTML editor to change Slot directive name or widget role as renames can be done by changing the relevant HTML attributes.

By renaming things in GlueCodes Studio, you also rename all its references in code (when possible).

You can rename things using a left hand side project explorer of the studio as you would in any other code editor. Here is what happens:

When renaming a command:

  • HTML attributes of directives which use the command are changed across all pages.
  • References to actions in extended tags are changed across all pages.
  • References to actions in widget input parameters are changed across all widgets.

When renaming a provider:

  • HTML attributes of directives which use the provider are changed across all pages.
  • References to actionResults in extended tags are changed across all pages.
  • References to actionResults in widget input parameters are changed across all widgets.

When renaming a reusable slot:

When renaming a widget role:

  • HTML attribute gc-role of widget directive is changed in the particular page or reusable slot.

When renaming a global style:

  • Its imports across all scoped styles are changed.

It's also possible to rename things using HTML attributes of certain directives. These are:

  • gc-name of a slot directive renames its scoped style.
  • gc-name of a reusable slot unless it hasn't been used anywhere yet, renames the reusable slot and its scoped style. Otherwise, a new - reusable slot is created and on each keystroke, it's renamed.
  • gc-role of a widget renames its scoped style.