按Enter键后,IntelliJ在每个注解行上添加*

gywdnpxw  于 2022-10-07  发布在  其他
关注(0)|答案(1)|浏览(135)

在IntelliJ中,要创建注解块,我可以执行CmdOpt/,但它不会在所有行中填充*。此外,按Enter键将转到新行,而不向下复制*。有没有办法自动填充东西,让它看起来更像这样?

/*
 * Copyright (c) 2022 by Bob Jones
 *
 * The MIT license.
 *
 * Permission is hereby granted, free of charge, to any person
 * obtaining a copy of this software and associated documentation
 * files (the "Software"), to deal in the Software without
 * restriction, including without limitation the rights to use,
 * copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the
 * Software is furnished to do so, subject to the following
 * conditions:
qv7cva1a

qv7cva1a1#

在评论上点击Alt+Enter,然后从操作列表中选择“Replace with JSDoc Comment”Intent。

相关问题