在Visual Studio中将多行代码格式化为单行 [英] Format Multiline code to single line in Visual Studio
本文介绍了在Visual Studio中将多行代码格式化为单行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在Visual Studio 2013中,是否存在键盘快捷键或快速方法将以下代码更改为一行?我还安装了Resharper.
Is there a keyboard shortcut or fast way to change the below code to a single line in Visual Studio 2013? I also have Resharper installed.
多
new XElement("Option",
new XAttribute("Name", "FileDelete"),
"1"
),
单
new XElement("Option", new XAttribute("Name", "FileDelete"),"1" ),
推荐答案
只需选择所有文本
,然后按(control + j)
它将变成1行代码
这篇关于在Visual Studio中将多行代码格式化为单行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文