作者:本多天舞 | 来源:互联网 | 2023-05-18 17:43
WhenIdeclareJSDocrightabovefunctioninsideanobject,thenreformatthecode(CTRL+ALT+L)
When I declare JSDoc right above function inside an object, then reformat the code (CTRL
+ ALT
+ L
) the function somehow gets intents.
当我在一个对象中声明JSDoc正上方的函数时,然后重新格式化代码(CTRL + ALT + L),该函数以某种方式得到意图。
Before reformat:
var SomeClass = module.exports = {
/**
*
*/
execute() {
}
};
After:
var SomeClass = module.exports = {
/**
*
*/
execute() {
}
};
I've tired to search for this inside the Settings > Code Style > Javascript everything seems ok there, (you can actually see an example there in the Wrapping and braces tab)
我已经厌倦了在设置>代码风格> Javascript中搜索一切似乎没问题,(你可以在Wrapping和braces选项卡中看到一个例子)
There is a way to prevent this weird intent ?
有一种方法可以防止这种奇怪的意图吗?
1 个解决方案