Shortcut Request - Remove line breaks
Zierde01
Posts: 10 Bronze 1
in SQL Prompt
I love the shortcut to add quotes and commas, but often I want to reduce the list to one line, can you add a remove line breaks (returns) shortcut. Maybe even make a shortcut that is "add quotes and commas and reduce to one line"?
Tagged:
Answers
Thanks for your post!
There is actually a formatting option that could help with this: Global>Whitespace>Preserve existing empty lines between statements. If you disable that option, then using the Formatting shortcut (CTRL+K+Y) would reduce any whitespace to one line.
Would that help, or are you looking for something to just reduce whitespace and not apply any other formatting?
Jessica Ramos | Product Support Engineer | Redgate Software
Have you visited our Help Center?
10
I can use the "Add quotes and commas" action, which is great, it produces a list like:
but ideally, I'd like the ability to further reduce it if I choose, so that it could be '10','11','12','13'
So another action from the Q menu for "Remove linebreaks" or "remove empty space" would be a great addition.
I'm so, so sorry for missing your last few posts!
There aren't any plans for this at the moment, but can I please ask that you post a request for this on our uservoice forum here: https://redgate.uservoice.com/forums/94413-sql-prompt. That's the best place for requests as other users can add their votes too.
I'll pass on the details to our developers as well as I can see the usefulness of a "remove empty space" and/or "remove line breaks" option.
Thank you and sorry again for the delay!
Jessica Ramos | Product Support Engineer | Redgate Software
Have you visited our Help Center?