Stop Eclipse from closing and opening quotes on new line inside quotes

廉价感情. 提交于 2019-12-11 04:05:24

问题


I always have my multi-line variables defined like this:

var query = "\
    SELECT \
        this AS that \
        CASE something \
    FROM table \
    WHERE something \
"

But in Eclipse, in the default JavaScript Editor in Eclipse 3.8.0 Web Tools Platform (WTP), everytime I press return, or paste a couple of lines, Eclipse will add quotes like this:

var query = "\
    SELECT \
        this AS that \
        CASE something \
    FROM table \" +
        "    JOIN pasted.line1 \" +
        "    JOIN pasted.line2 \" +
        "    JOIN pasted.line3 \" +
        "    JOIN pasted.line4 \" +
        "WHERE something \
"

Making the indentation annoying and markup not to my personal taste.

Can I disable this specific 'feature' without disabling other tricks of wizardry?

来源:https://stackoverflow.com/questions/14751338/stop-eclipse-from-closing-and-opening-quotes-on-new-line-inside-quotes

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!