我有以下字符串:
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问题)
答案 0 :(得分:0)
试试这个
Click inside string
Press alt+enter or click the light bulb
Click "Copy String concatenation text to the clipboard"