-
Notifications
You must be signed in to change notification settings - Fork 510
Closed
Description
If I use the Java18 snippet tag, all Javadoc is still joined to a single line.
I copied the formatter settings from an Eclipse project, where everything works fine.
Environment
- Operating System: Windows 11
- JDK version: OpenJDK 21
- Visual Studio Code version: 1.94.0
- Java extension version: 1.35.1
Steps To Reproduce
- Create a Java file with this content
public class SnippetTest {
/**
* This is a snippet test.
* {@snippet :
* System.out.println("Hello World");
* }
* @param args
* the arguments
*/
public static void main(final String[] args) {
System.out.println("Hello World");
}
}
- Format the file with the attached settings.
Current Result
public class SnippetTest {
/**
* This is a snippet test. {@snippet : System.out.println("Hello World"); }
*
* @param args
* the arguments
*/
public static void main(final String[] args) {
System.out.println("Hello World");
}
}
Expected Result
see the first code block