任何用于新行自动连接的 Visual Studio 2010 扩展?
我有一个关于 Visual Studio 2010 的问题...在单声道开发中,当我有这样的字符串时:
string s = "hello, how are you";
如果我在“如何...”的开头按 Enter 键,代码会自动更改为:
string s = "hello, " +
"how are you?";
Is some Visual Studio 2010 中的扩展是否可以在新字符串行上自动连接?
谢谢!
i have this question about visual studio 2010... in mono develop, when i have a string like this:
string s = "hello, how are you";
and if i press enter key on the beginning of the "how...", the code changes automatically to this:
string s = "hello, " +
"how are you?";
Is some extension in visual studio 2010 for this auto concatenation on a new string line?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否期望字符串中存在转义序列?如果没有,您可以只使用 逐字字符串文字:
那么你就不需要VS扩展了。
显然,只有当您不关心将添加的额外空白时,这才有效。如果您只需要拆分代码中的行,但将它们放在生成的应用程序中的一行上,则这将不起作用。
Are you expecting any escape sequences in your string? If not, you can just use a Verbatim String Literal:
Then you have no need for a VS extension.
Obviously, this will only work if you are not concerned with the additional whitespace which will get added. If you need to just split the lines in code, but have them on one line in the resulting application, this will not work.