Search code examples
xcode

How can I add large SQL queries to the editor without double quotes at the start and end of each line?


I asked a question earlier today "Xcode: How do I wrap a long string around to the next line in the xcode editor" ...

Xcode: How do I wrap a long string around to the next line in the xcode editor

... but this is going to be inconvenient, I`ve got some quite large sql statements, which are nicely formatted. In PHP I now you can do something like >> sql then << something like that.

Is there something similar in Xcode?


Solution

  • Nope. You'll have to escape the double quotes, or quote using single quotes instead.