3 ms·
I'm glad they're going to try to get multi-line strings right, but seriously, I (and many other people) have wanted this feature for 19 years. This is not an e
by ccleve 8y ago
I'm glad they're going to try to get multi-line strings right, but seriously, I (and many other people) have wanted this feature for 19 years.
This is not an exaggeration. I was writing code in Java to access SQL databases in 1999 and needed it to express long SQL strings.
One would think they could move a little faster.
- emidln 8y agoI don't think I've ever wanted SQL embedded in my Java source over loading it as a resource. Loading it as a resource allows me to edit the SQL in a sql-aware text editor.
- stickfigure 8y agoIntelliJ is aware of SQL in text strings, and even validates it against the database schema. I like my SQL right next to the code that sets parameters, processes results, etc - mismatches are apparent (and also validated by IntelliJ).
- orf 8y agoNot just SQL, but any language. It's one of my favourite (and IMO very under-appreciated) features of the Jetbrains editors.
- halfastack 8y agoIntellij also automatically escapes your string and inputs newlines wherever necessary, so if you copy a long string, it's generally done for you (I've copied pieces of XML and it generally worked totally fine).