热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

对JSDoc以下函数的奇怪自动意图-WeirdautointentforfunctionbelowJSDoc

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 个解决方案

#1


0  

As the comments say, this is a bug so now real solution other then waiting for a fix.

正如评论所说,这是一个错误,所以现在真正的解决方案,然后等待修复。


推荐阅读
author-avatar
本多天舞
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有