When a newline is entered within a javadoc comment block, editor inserts 2 asterisks instead of 1

  • Operating system: Windows 10 Enterprise
  • SonarLint plugin version: 7.0.0.52289
  • Programming language you’re coding in: Java
  • Is connected mode used: No

Start a new simple java project.
Create a new class:

/**
 * @author amita
 */
public class MyClass {
}

Go to the end of the first line, and press ENTER. I am expecting a newline with a leading asterisk. I get that, but also an unwanted trailing asterisk:*

/**
 * *
 * @author amita
 */
public class MyClass {
}

Hello @AmitAmely,

This behaviour has nothing to do with SonarLint, if you disable the plugin you should still see the same. It’s probably something that is applied by the IDE. Maybe there is a configuration in settings to avoid that ?

Wrong, when I disable the plugin this behavior is gone

My bad, it was AWS Toolkit plugin

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.