在 VS2008 中停止自动换行(vb)

发布于 2024-07-23 10:39:26 字数 240 浏览 1 评论 0原文

不幸的是,VS2008 自动包装了我的一些代码,这对搜索没有帮助,因为它包装的点导致了我的设计器项目中变量名称的分割。 例如,名为 MyVariable 的变量将显示如下:

    "MyVar", & _
    "iable"

这意味着我无法搜索这些变量。 有什么办法可以防止 VS 像这样换行吗? 或者有什么方法可以让我搜索这样的变量,即使它被包装了? 提前致谢!

Unfortunately VS2008 has wrapped some of my code automatically, this isnt helpful for searching as it has wrapped at points that has resulted in split names of variables in my designer project.
e.g. Variable named MyVariable would appear as below:

    "MyVar", & _
    "iable"

This means i cant search for these variables. Is there any way that i can prevent VS from wrapping like this? Alternatively is there any way that i could search for a variable like this even if it is wrapped?
Thanks in advance!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

哎呦我呸! 2024-07-30 10:39:26

您可以通过转到文本编辑器/VB.NET下的工具/选项菜单来关闭VB代码中的自动换行。

You can turn off word wrapping in VB code by going to Tools/Options menu, under Text Editors/VB.NET.

记忆之渊 2024-07-30 10:39:26

要回答你的第二个问题:

查找(CTRL+F),
选择“搜索隐藏文本”和“使用:正则表达式”

搜索

"Class.*\n.*Inherits"

会找到

Public (HERE)Class Form1
   Inherits(TO HERE) System.Windows.Forms.Form

To answer your secondary question:

Find (CTRL+F),
select "Search hidden text" and "Use: Regular expressions"

searching for

"Class.*\n.*Inherits"

Will find

Public (HERE)Class Form1
   Inherits(TO HERE) System.Windows.Forms.Form
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文