Hi Marijn! I recently encountered a problem when using @codemirror/lang-vue
. I found that when I pressed enter to create a new line, the code inside <script></script>
and <style></style>
would be indented one unit by default, like this:
<template>
<button></button>
</template>
<script>
export default {
data() {
return {}
}
}
</script>
<style scoped>
button {}
</style>
But in fact this is not necessary, the official Vue code like:
<template>
<button></button>
</template>
<script>
export default {
data() {
return {}
}
}
</script>
<style scoped>
button {}
</style>
How can I remove the default indentation (just remove the first level of indentation)?