How to align group of lines into String automatically in Eclipse?
For Example
String s = "{ "QUOTE_DETAILS": {
"BRANCH_CODE": "0000",
"TRANSACTION_TYPE": "TTTT",
"EXPIRY_DATE": "10/11/2012"
}}
Above group of lines should be auto aligned as
String s = "{ \"QUOTE_DETAILS\": { "
+"\"BRANCH_CODE\": "0000\", \"TRANSACTION_TYPE\": \"TTTT\","
+"\"EXPIRY_DATE": \"10/11/2012\""
+" }}";
Do we have any option to achieve this?
Above example is just a sample, In reality I has some 40 odd lines of data, which need to be converted into String in java.