Delphi 2010 搜索环绕

发布于 2024-10-16 23:46:00 字数 454 浏览 9 评论 0原文

有没有办法关闭 Delphi 2010 搜索的“环绕”功能?

我知道很多开发人员对新的搜索功能有疑问,但它对我来说效果很好,除非搜索绕回并再次转到第一个结果。

我还知道您可以标记“搜索”选择框,但这对我不起作用。我怀念搜索功能的一部分,它可以让您从光标或范围进行搜索,并在没有更多结果时告诉您。

这是让我困惑的一个例子。我有一个树视图,其中许多节点通过级别索引(即 Item.Level = 1)访问,并且我需要在级别 0 添加一个新节点,因此所有索引都需要移动到级别+ 1。我现在浪费了大量时间第二次甚至第三次重新分配这些索引,因为搜索功能换行(我无法使用替换来完成我正在做的事情)。

每次我更改某些内容并且 .Level = 0 变成了 .Level = 1.Level = 2 时,看着代码滚动条真是很痛苦> 等

Is there any way to switch off the 'Wrapped around' functionality of Delphi 2010's search?

I understand lots of developers have issues with the new search function but it works well for me except when the search wraps around and goes to the first result again.

I also know that you can flag the Search selection box but this will not work for me. I miss the part of the search functionality that would let you search from cursor or scope and tell you when there are no more results.

An example of where this is messing me around. I have a tree view where lots of nodes are being accessed by level indexes (i.e. Item.Level = 1) and I need to add a new node at level 0 and thus all of the indexes needs to shift to Level + 1. I have wasted plenty of time now reassigning these indexes a second and even third time because the search function wraps (I cannot use the Replace for what I am doing).

It's a pain to watch the code scroll bar every time I change something and .Level = 0 has become .Level = 1, .Level = 2, etc.

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

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

发布评论

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

评论(1

长发绾君心 2024-10-23 23:46:00

Delphi XE 中的默认行为是一个对话框,要求从文件开头重新开始搜索,其中包括一个(未选中的)复选框,用于环绕而不询问

此行为可在“工具”->“工具”中配置。选项->编辑器选项 ->自动搜索环绕。

我没有运行 Delphi 2010 来验证,但运气好的话,这可能就是所需的一切。

The default behavior in Delphi XE is a dialog box that asks to Restart search from the beginning of the file, including an (unchecked) checkbox to Wrap around without asking.

This behavior is configurable in Tools -> Options -> Editor Options -> Auto search wrap around.

I don't have Delphi 2010 running to verify but with any luck, this could be all it takes.

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