Stop Eclipse from closing and opening quotes on ne

2019-07-15 13:35发布

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?

0条回答
登录 后发表回答