I think this is a feature request, unless there is a way to do this I haven’t found.
NRQL can get quite complex, and carriage returns can be very helpful for formatting. The various text inputs for NRQL, including alert conditions and the data explorer, do not support a simple way to add carriage returns (that I have found). Many editors elsewhere use CMD-ENTER, or some other shortcut.
The workaround I found is to use copy/paste, either for the fully formatted NRQL, or just the carriage returns. However, this can get annoying, and other developers that edit my queries often don’t know the workaround, and they are sometimes confused about how to proceed.
New Relic edit
- I want this, too
- I have more info to share (reply below)
- I have a solution for this
We take feature ideas seriously and our product managers review every one when plotting their roadmaps. However, there is no guarantee this feature will be implemented. This post ensures the idea is put on the table and discussed though. So please vote and share your extra details with our team.