问题标签 [block-comments]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
0 回答
48 浏览

refactoring - JetBrains 使用缩进注释代码块的设置

我的 JetBrains 产品有问题,它不能正确注释代码块Ctrl + Shift + /

当我使用它来评论我的代码时,它会在第一列中添加/**/,而不是我的代码缩进,所以在使用重新格式化我的代码之后,这些/**/将来到我的代码的缩进位置,我现在注释的代码将更多缩进。

抱歉我的描述不好。我会给你一个例子。

评论后

重构代码后

0 投票
1 回答
294 浏览

blockchain - 比特币 SV 测试网节点实施需要多少磁盘空间?

我想创建比特币 SV 节点,但不确定它需要多少磁盘空间。

请有人尽快回答我

0 投票
1 回答
116 浏览

java - 有没有办法在 Kotlin 类的块注释中指定 XML 文件?

我想不出在 Kotlin 类的块注释中提及 XML 文件的方法。我知道可以标记一个类或函数,但是 Android 项目中的 XML 文件呢?

像这样的东西,其中 nav_graph.xml 是要标记的文件:

0 投票
1 回答
537 浏览

editor - 如何在内置 MobaXterm 编辑器中注释或取消注释多行?

我想在 MobaTextEditor 中阻止评论。

在任何地方似乎都没有关于此在线的任何信息,所以我想知道是否有人知道我在哪里可以找到有关此的文档,或者他们是否从经验中知道。

我尝试添加一个按键,ecCommentBlock但这不起作用(按键没有做任何事情)。

带有自定义按键的选项窗口

我不知道为什么,但关于这个编辑器的信息似乎难以捉摸,在他们的网站上,它的整个简介是“ MobaXterm includes everything you need to edit text files: vi on command line, nedit for a graphical editor or MobaTextEditor which is a light but powerful editor for developers with textdiff utilities.

有人有这个问题的经验吗?

0 投票
2 回答
151 浏览

c++ - How do I stop Visual Studio 2019 from automatically inserting asterisk during a block comment in C++?

When using Visual Studio 2019, when I hit enter within a block comment in a C++ file it adds a leading * . I've found a solution to this problem for C# at How do I stop Visual Studio from automatically inserting asterisk during a block comment? but the same option is not present for C++ and changing the C# option doesn't disable the feature for C++. This does not occur with Visual Studio 2017.

So when I have:

and I hit enter I want it to look like:

but instead I get

Is there an option somewhere that disables this behavior or another way to do so?