samuel.molinski
samuel.molinski

Reputation: 1129

Sublime Text: prevent new line comment

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?

Upvotes: 5

Views: 1376

Answers (2)

dmpol18
dmpol18

Reputation: 161

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
}

Upvotes: 15

The Bear
The Bear

Reputation: 233

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.

Upvotes: 10

Related Questions