Preferences

Last modified: April 18, 2024

1 Introduction

The Preferences option in the menu opens a dialog box where you can set user-specific preferences which apply to the whole of Studio Pro:

Preferences

2 General Tab

2.1 Interface

2.1.1 Keep Active Document Selected in App Explorer

When enabled, App Explorer automatically highlights the document that is currently active. When this property is disabled, the selection in App Explorer remains unchanged when the active document changes.

2.1.2 Show Styling For

The Show styling for setting configures, which styling files are shown in the App Explorer.

You can select one of the following options:

  • App Only – This option covers the most common case and lets you customize your app-specific styling. By choosing this, you can see all files from the theme folder in App Explorer > App > Styling.
  • App and UI resources modules (Default) – This option targets developers who would like to create or edit UI resources modules, for example, to build or extend your design system/theme. This option also adds a Styling folder to modules that are marked as UI resources, containing the files from the corresponding themesource folder.
  • App and all modules – Additionally to the option above, this one adds a Styling folder to all modules, regardless of whether they are marked as UI resources or not.

For more information about the styling editor, see the Using the Styling Editor section in How to Customize Styling.

2.2 Error List

2.2.1 Auto-Check Delay

The Auto-check delay is the number of milliseconds that Studio Pro waits after a change, before starting the consistency checks. Increase this setting for large apps if Studio Pro responses slowly after changes.

2.2.2 Highlight Shown Errors and Warnings in the Editor

When Highlight shown errors and warnings in the editor is checked, the errors and warnings which are currently shown in the Error List (as determined by the Errors and Warnings toggle buttons and the suppression rules) will be highlighted on the affected elements in the editor.

2.3 Deployment

2.3.1 JDK directory

This is the directory in which the Java Development Kit (JDK) is located on the computer on which you deploy the application. Usually, the correct directory is located automatically.

The JDK is necessary to run Mendix applications, because the Mendix Runtime is written in Java.

2.3.2 Enable Run Optimizations

Enable this setting to increase the speed at which a running application is updated after changes have been made in Studio Pro. When only pages, layouts or snippets have been changed, an entire restart of the application is skipped to decrease deployment time. Also, no Java compilation is performed when no relevant files have changed.

2.3.3 Build Using Gradle

Enable this setting to build you app using Gradle. If this setting is disabled Ant is used instead.

2.3.4 Gradle Directory

A directory where Gradle is located on the computer that you use to deploy the application. The correct directory is usually located automatically.

Gradle is necessary to deploy Mendix applications if the Build using Gradle setting is enabled.

2.4 Disk Location

2.4.1 Default App Directory

This is the directory where new apps are stored. It is used in the App Settings dialog box when you create a new app. If a different directory is selected in the App Settings dialog box, that directory is stored as the new default app directory.

3 Mendix Assist Tab

3.1 Logic Bot

The Logic Bot tab contains the following settings:

  • Enable MxAssist Logic Bot – when enabled, MxAssist Logic Bot is activated and can give you suggestions for microflow activities. You can also switch MxAssist Logic Bot on and off in the top right corner of the microflow editor.
  • Show Suggestions for System Variables – when enabled, MxAssist Logic Bot will include system objects in its suggestions (for example, it can suggest that you change system objects like currentUser or currentSession).

3.2 Performance Bot

The Performance Bot tab contains the following settings:

  • Show recommendation in editors – when enabled, MxAssist Performance Bot highlights elements that contain performance issues in visual editors.

  • Automatically run an inspection after opening an app – when enabled, MxAssist Performance Bot automatically runs an inspection when an app is opened. If the app contains errors, the inspection will not run.

4 Model Tab

4.1 When Prompted by a Widget to Automatically Fill Its Contents, Select ‘Yes’ by Default

This setting defines the default response to the question whether to automatically fill the contents of a data widget. This question is asked, for example, when dragging an Entity onto a Data View widget. When enabled, the pre-selected answer is yes; otherwise, it is no.

5 Version Control Tab

5.1 File Comparison

5.1.1 Executable

This is the path and name of the program that is used to view the details of file changes in the commit dialog box.

For example, you can see how to set up file comparison for Visual Studio Code below:

{path to VS Code}/Code.exe --wait --diff "{0}" "{1}"

5.1.2 Argument Pattern

This is the pattern from which the arguments are derived that are passed to the file comparison program. The following two placeholders can be used in this pattern:

  • {0} – this is replaced with the name of the original file before the arguments are passed to the file comparison program
  • {1} – this is replaced with the name of the changed file before the arguments are passed to the file comparison program

5.2 Subversion

5.2.1 Enable Private Version Control with Subversion

Select this option when you want to work on an app that is not stored in Mendix Team Server, but in another Subversion server to which you have access. This will allow you to specify the location of the app on the Subversion server when opening, downloading, or uploading the app.

5.3 Git

5.3.1 Name

Specify your name for Git to use it in commit messages and make them more informative.

5.3.2 Email

Specify your email for Git to use it in commit messages and make them more informative.

5.3.3 Enable Automatic Repository Optimization

Select Enable automatic repository optimization to run Git repository optimization automatically on a regular basis. This helps you maintain the storage structure providing benefits from both performance and repository size perspectives.

5.3.4 Number of Commits

This option is available when Enable automatic repository optimization is on. Studio Pro keeps track of the number of commits made in the local repository. You can manually specify the minimum number of them to tell when to start background optimization. For more information, see Git Storage Optimization.

5.3.5 Enable Private Version Control with Git

Select this option when you want to work on an app that is not stored in Mendix Team Server, but in a private Git server to which you have access. This will allow you to specify the location of the app on the Git server when opening, downloading, or uploading the app. In this section, you also need to specify name and email values that will be used to identify your commits with Git.

6 Advanced Tab

6.1 Proxy Server

Sometimes the computer running Studio Pro cannot access the internet directly, but has to connect to a proxy server that requires authentication. If this is the case, then these settings can be used to specify the user name and password to connect to the proxy server.

6.2 Usage Data

When the Send Studio Pro usage data to Mendix setting is enabled, Studio Pro sends usage data to Mendix that allows Mendix to identify issues and improve the user experience. The usage data does not contain sensitive information. It is possible to disable this feature, but it may affect the behavior of some features, prevent Mendix from identifying issues reported by the user, or affect tracking issues that are not reported yet. This setting is machine-specific and changing this feature does not affect any existing installed version.

6.2 Rendering

Hardware and driver issues may cause performance problems when running Studio Pro. These issues can appear in form of dialogs opening and closing much slower than expected, and general slowness of the UI. In case the hardware problems cannot be solved, it is possible to mitigate these issues by turning the Enable software rendering mode setting on. Enabling this setting requires a restart of Studio Pro to take effect. Running the application with this setting on may increase the CPU usage.

7 Work Environment Tab

7.1 Default Page Editor

This option sets the default page editor mode that your page opens in: Structure mode or Design mode. For more information on page editor modes, see the Page Editor Modes section in Page.

8 New Features Tab

The New features tab allows you to turn new features on and off. These are features which are being worked on but are either not yet developed sufficiently to remove the previous version, or which are currently optional.

8.1 Browser Sign In

The Use your default browser to sign in option allows you to use your default browser to sign into Studio Pro. If there is an active Mendix session in your browser, you will be signed in with this session.

Default: enabled

8.2 Dark Mode Preview

The Dark mode option allows you to preview to the dark mode of the Studio Pro user interface.

Default: disabled

8.3 New Merge Algorithm with Fine-Grained Conflict Resolution

With this option, you can enable the new merge algorithm that is used when you update your app or merge changes in it. For more information on the algorithm, see New Merge Algorithm with Fine-Grained Conflict Resolution.

Default: enabled

8.4 Properties Pane

The New Properties pane preview option allows you to enable the overhauled UI for viewing and changing properties in Studio Pro.

Default: disabled

9 Read More