Shortcut Request - Remove line breaks

Zierde01Zierde01 Posts: 7 New member
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"?


  • Jessica RJessica R Posts: 950 Rose Gold 1
    Hi @Zierde01,

    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?
    Product Support Engineer | Redgate Software
  • Zierde01Zierde01 Posts: 7 New member
    It sounds like this solution would reduce all my code to one line if I choose to format a document or a segment of code, is that correct?  I don't want to change my general formatting setup for when I format code...just give myself an option to automatically reduce a highlighted section of code if I desire.  Thats why I thought the shortcut ability sounded like a good choice...I could do an add quotes and commas then follow it with a remove line breaks and I'd have a one line list of things.
  • Zierde01Zierde01 Posts: 7 New member
    I was thinking about this request and decided to check in on it and see if it had been added or any new comments on it.  Just to confirm, I'm thinking that if I get a list of numbers, like:

    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.
Sign In or Register to comment.