enter newline in string literal

I just updated to 2016.2 #DB-162.1122.5 and noticed the behavior changed. Before, if I had a string literal like


select * from foo where bar = 'val'


I could put my cursor inside the single quotes and press the enter key, and it would insert a new line, making my string like

select * from foo where bar = 'v

which I liked. Now after updating, it produces

select * from foo where bar = 'v' ||

How do I enter a newline character inside a string literal without causing this string split + concatenation stuff?

Comment actions Permalink

I subscribe to the issue. This behavior is very annoying. Maybe there is a setting that changes this behavior....

Comment actions Permalink

How can I disable this feature no matter the language?  When I press enter within a string, I ALWAYS want to to just insert a newline.  I can't stand that it tries to maintain the syntax and inserts a closing quotation mark, + symbol, and new opening quotation mark.

Comment actions Permalink

It looks like you're asking how to disable this https://youtrack.jetbrains.com/issue/DBE-2938 feature?



Please sign in to leave a comment.