我怎样才能摆脱日食中逃脱的角色

时间:2017-01-17 15:15:59

标签: eclipse

我有以下字符串:

String s="create view robot_tests as \n" +
    "select number, alert, why,str_query from ( \n" +
    "SELECT count(*) AS number , \"ERROR\" AS alert, \"t01: a question doesnt have any rSAnswers\" AS why,\n" ;

有没有简单的方法可以像普通文本一样复制所有内容?即:

create view robot_tests as 
select number, alert, why,str_query from ( 
SELECT count(*) AS number , "ERROR" AS alert,

我通常只是手动替换它们 ctrl + H \n\"以及连接器,但是每个删除它们只需要很多。我无法弄清楚如何询问Google(它只是给了我需要替换/连接/删除斜线或转义字符的人的Stack Overflow问题)

1 个答案:

答案 0 :(得分:0)

试试这个

Click inside string
Press alt+enter or click the light bulb
Click "Copy String concatenation text to the clipboard"