User Variables

Global User Variables ConfigurationIn addition to built-in and environment variables, HippoEDIT allows you to define your own variables that can be accessed same way as built-in variables (mean in templates, tool definitions, scripting etc).

For defining of the user variable, you need to provide unique (in current context) name and value, which will substitute variable name during processing.

User variables can be defined as:

  • Global - accessed from Tools→Options→General→User Variables
  • Workspace based - accessed from File→Workspace→Properties→User Variables
  • Project based - accessed from Project→Properties→User Variables (if Project plug-in is active).

During execution, user variables from all sources merged, using following priority Global→Workspace→Project, where Project is strongest. So, for example, if you have defined user variable with name var1 in global and workspace context, one from workspace will win and overwrite one from global context.

Managing of user variable configurationsFor some scenarios it makes seance to have more than one set of user variables defined.

For example, if you want to model debug and release builds (C++), where both builds should have different parameters set in tool configurations. In this case you can create own configuration for every build type and have different variable values in both cases.

You can unlimited number of configurations in all contexts, change them, copy and switch between them.

In the configuration list (combo box) you see all configurations found in all contexts (global, workspace and project).

Configuration toolbar with configurations listEditor will use only variables from current configuration during processing. You can change current configuration using Configuration toolbar.

By default, there is only one Default configuration in which all variables are defined.