Is there a keyboard shortcut or fast way to change the code below to a single line in Visual Studio 2013? I also have ReSharper installed.
Multi
new XElement("Option",
new XAttribute("Name", "FileDelete"),
"1"
),
Single
new XElement("Option", new XAttribute("Name", "FileDelete"),"1" ),
1 Answer. Show activity on this post. Mark code that you want to convert to single line, press F1 , type join lines press Enter and voila!
Select the lines you want and then press: Windows: Shift + Alt + i. Mac: shift + option + i.
You can select all and use SHIFT + TAB to unindent. Show activity on this post. =>for multiline at same time you can use Shift + Alt + Up/Down arrow key then edit your code or remove/add space. =>you can edit more then one line at same time in anywhere in code press and hold Alt key then click on lines with mouse.
Just select all the text
and press (control + j)
and it will become 1 line of code
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With