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
al'

which I liked. Now after updating, it produces

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

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

4 comments
Comment actions Permalink

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

1
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.

0
Comment actions Permalink

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

 

0

Please sign in to leave a comment.