【发布时间】:2016-12-17 17:37:47
【问题描述】:
目前,当我有以下情况时(| 是光标所在的位置):
'/about': {
component: {
template: '#about-template'
}
},|
然后按回车键,光标到这里
'/about': {
component: {
template: '#about-template'
}
},
|
但我希望光标到这里:
'/about': {
component: {
template: '#about-template'
}
},
|
这是一张图片供参考:
箭头指向我希望新行缩进开始的位置。
我如何做到这一点?
【问题讨论】:
-
当我按下返回时,它不会删除一个缩进,而是返回到上一行,当我继续以这种方式编程时,这会产生一种楼梯效果。
-
这是在为 vue.js 编写 js 的脚本标签内,以防万一
-
如果只有一个结束括号,输入后的缩进是完全可以的,当我在结束括号后有一个逗号时问题就开始了,这是Vue.js编程所需要的。
标签: tabs phpstorm newline indentation space