Open STofone opened 3 months ago
It seems that this function does not exist in the CodeMirror standard, but it seems possible to do it by implementing the process described on the following site.
https://discuss.codemirror.net/t/adding-indentation/5622/7
In this program, I think you can do this by putting this function in @update
.
I want to format selected code (or auto format after save or after setValue). The solutions i found is to use
indentLine
. But when i print the reference of CodeMirror Component, there's no methodindentLine
.