How to stop PHPStorm from concatenating when adding newlines in JavaScript

In my .js file, if I hit enter to create a new line, it automatically adds a quotes and the '+' operator between the lines. But, I just want to add a new line. How to I prevent this?

Thanks!
Chris

2 comments
Comment actions Permalink

This normally only happens when you hit Enter inside a string literal
Please can you record a screencast that shows up the issue?

0
Comment actions Permalink

Hi Elena,

You're right, I was thinking along the lines of PHP where you can have new lines in a string without a problem. Thanks!

Cheers,
Chris

0

Please sign in to leave a comment.