如何在 VS Code 中禁用注释格式?

Hai*_*ang 1 visual-studio-code

我有一个带有多行注释的 Java 文件,如下所示:

/** 
 *   original: 0, 2, 1, 4, 3, 5, 7, 6
 *   max:      0, 2, 2, 4, 4, 5, 7, 7
 *   sorted:   0, 1, 2, 3, 4, 5, 6, 7
 *   index:    0, 1, 2, 3, 4, 5, 6, 7
 * 
 *   The chunks are: 0 | 2, 1 | 4, 3 | 5 | 7, 6
 *   @param arr
 *   @return
 */
Run Code Online (Sandbox Code Playgroud)

当我格式化源代码时,它会格式化注释,如下所示:

/**
 * original: 0, 2, 1, 4, 3, 5, 7, 6 max: 0, 2, 2, 4, 4, 5, 7, 7 sorted: 0, 1, 2,
 * 3, 4, 5, 6, 7 index: 0, 1, 2, 3, 4, 5, 6, 7
 * 
 * The chunks are: 0 | 2, 1 | 4, 3 | 5 | 7, 6
 * 
 * @param arr
 * @return
 */
Run Code Online (Sandbox Code Playgroud)

有谁知道如何在 VS Code 中禁用格式化注释?谢谢!

小智 5

我不知道您正在使用什么插件和/或格式化程序,但这是 Red Hat 最受欢迎的插件

在此输入图像描述