Question

I am not completely sure if this not a plugin, but after starting a line comment in .js file, for example, when I hit enter the next line starts with "//" as well. This is kind of annoying. Is there a simple way to remove this?

Was it helpful?

Solution 2

This is indeed caused by the package DocBlockr.

When using this package, you can hit shift + enter to prevent the // from appearing on your new line.

OTHER TIPS

In "Preferences -> Package Settings -> Doc Blockr -> Settings Default" you can find lines:

// If true, then pressing enter while in a double-slash comment (like this one) // will automatically add two slashes to the next line as well

"jsdocs_extend_double_slash": true,

If you want to disable this behavior go to "Preferences -> Package Settings -> Doc Blockr -> Settings Default" and add

{
  "jsdocs_extend_double_slash": false
}
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top