You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 method indentLine.
<CodeMirrorref="codeMirror"
v-model="code"
:extensions="extensions"
:tab="true"
placeholder="Please enter the code."
style="height: 100%"
@change="save"
></CodeMirror>
......
console.log(codeMirror)
The text was updated successfully, but these errors were encountered:
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.
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
.The text was updated successfully, but these errors were encountered: