Code editor does not record tab character

Hello, when I paste text containing the Tab character “\t” into the CodeEditor and call getValue(), the String includes the \t character. :slight_smile: But when typing in the CodeEditor and hitting the Tab key, the CodeEditor transforms the tab into spaces. :frowning:

Is there anything I can do to register the \t character?

I am using Jmix 2.2.3.

Hi!

To always use /t character instead of a series of spaces, you should set the useSoftTabs property to false value. The default is true. This property will be available in the upcoming 2.3 release.

There is the linked issue: Support useSoftTabs codeEditor property · Issue #3382 · jmix-framework/jmix · GitHub

Best regards,
Dmitriy

Thank you. I look forward to 2.3 release.