如何从包装线格式化code时停止Visual Studio 2008中 [英] How do I stop Visual Studio 2008 from wrapping lines when formatting code

查看:167
本文介绍了如何从包装线格式化code时停止Visual Studio 2008中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有Visual Studio 2008中一个恼人的问题。

I have an annoying problem with Visual Studio 2008.

当我运行格式code命令(控制+ K,控制+ D) - 这将插入一个回车。我如何得到它停止这样做?

When I run the "format code" command ("control+k, control+d") -- it will insert a carriage return. How do I get it to stop doing this???

例如:

<标签=shipCompanyName>公司名称:< /标签>

不期望成为

<标签=shipCompanyName>结果
                            公司名称:<标签/>

推荐答案

转到工具,选项。打开文本编辑器,HTML和格式。取消选中自动换行标签超过规定长度时。

Go to Tools, Options. Open Text Editor, HTML, and Format. Uncheck "Wrap tags when exceeding specified length".

奇怪的是,VS2008不具有XML相同的选项。

Oddly, VS2008 doesn't have the same option for XML.

这篇关于如何从包装线格式化code时停止Visual Studio 2008中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆