Search code examples
marklogic

Is there any way to change the tab spacing in the MarkLogic Query Console?


The standard tab spacing for query console is set to 2 spaces. Is there any way to adjust this?


Solution

  • I don't believe that there is an exposed way to override it, but the indentation is configured in: /MarkLogic/Apps/common/codemirror5/lib/codemirror.js

    On line 5364:

    option("indentUnit", 2, loadMode, true);
    

    You could hack on that file in your install to adjust the indent. However, if you upgrade or re-install your changes will be lost.

    Some editor options have recently been exposed and allowed to be configured to control code completion, intelli-sense, etc. You might file a Support ticket requesting that the code indent be added as another option for users to control the behavior of the Query Console editor.