开发者

Delphi 2010 Search Wrap Around

开发者 https://www.devze.com 2023-02-09 04:46 出处:网络
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

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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消