May 3, 2020

Changing the naming of functions and snippets in rules and processes

This article explains how to change the naming of function and snippets in rules and processes. By default all functions and snippets follow a PascalCase.

To open the auto-complete list, hit CTRL+SPACE in process or rules editor:

Arc v1.11 includes two new scripts to be used to customise the naming of functions and snippets in rules and processes that you can find in the Arc/naming folder:

  • lowercase.js: to make all functions and snippets lowercase

  • uppercase.js: to make all functions and snippets uppercase

To enable one of these scripts, there are two settings in the settings.yml file:

  • rulenamingscript: Applying a script for the rules

  • processnamingscript: Applying a script for the processes

In the example below, we enable the uppercase script for rules and processes:

Save the file and refresh Arc by clearing the cache (SHIFT+F5)

Create a custom case

These built-in files are overwritten when Arc loads so can’t be edited. To create your own script copy one of the existing files and change as required, placing the name of the file in the settings.yml file.

Related content

Loading related content