3

I have a Java file with multiline comments like below:

/** 
 *   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
 */

When I format the source code, it format the comments as below:

/**
 * 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
 */

Does anyone know how to disable formatting comments in VS Code? Thanks!

1 Answer 1

7

I have no idea what plugin and/or formatter you're using, but this is for the most popular plugin from Red Hat

enter image description here

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks for your quick response and it works perfect when I update the boolean to false.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.