寻找文本编辑器和 IDE 中查找和替换用户界面的良好示例

发布于 2024-07-19 06:51:19 字数 361 浏览 3 评论 0原文

我正在开发带有集成文本编辑器(例如 IDE)的 Windows 应用程序。 当前的查找和替换功能使用标准的 Windows 对话框,这些对话框已经过时了,而且功能也不是很强大。

您知道哪些关于文本编辑器或 IDE 中的查找和替换功能的精彩示例? 我正在寻找外观和感觉、易用性、强大功能以及整个作品的灵感。 谢谢!

注意:我当然对超级强大的一次性编辑整个工作空间的 IDE 功能感兴趣,但我也对简单但优雅的 UI 感兴趣,例如 Firefox 的查找栏或 Chrome 的查找选项卡。

编辑:我接受了 Richard 的帖子,因为它讨论了几种不同类型的查找和替换 UI,但所有答案都非常有帮助 - 谢谢!

I'm working on a Windows application with an integrated text editor, like an IDE. The current Find and Replace features use the standard Windows dialogs, which are showing their age and aren't very powerful.

What great examples do you know of Find and Replace functionality, in text editors or IDEs? I'm looking for inspiration for look and feel, ease of use, powerful functionality, the whole works. Thanks!

Note: I'm certainly interested in super-powerful edit-your-whole-workspace-at-once IDE features, but I'm also interested in simple but elegant UI's like Firefox's Find bar, or Chrome's find tab.

Edit: I've accepted Richard's post because it talked about several different kinds of Find and Replace UI, but all the answers were very helpful - thanks!

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

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

发布评论

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

评论(7

雨夜星沙 2024-07-26 06:51:20

Netbeans 有一个很棒的项目/多个项目,它多次拯救了我。

http://www.netbeans.org/

Netbeans has a great project/multiple project one, it saved me on many an occasion.

http://www.netbeans.org/

镜花水月 2024-07-26 06:51:20

“查找和替换”的一项重要功能是能够通过一个视图查看将替换哪些文本以及结果之前 em> 实际上更改了任何文件(即使更改后也允许撤消)。 我不知道是否有任何编辑器这样做是正确的,但要了解我在说什么,请查看 IntelliJ IDEA 的查找用法 (Alt+F7) 的工作原理(它显示了所找到内容的代码片段,并显示了它们都在一页上)并将其与 IDEA 的版本控制历史记录如何显示每行上的更改内容相结合(突出显示添加/更改/删除的确切单词,而不是整行)。

PS 不要创建与 IDEA 目前相同的 Firefox 风格的查找栏,除非您了解所涉及的所有问题。 当前的查找栏是在 IDEA 7 中添加的,它存在一些与键盘控制相关的可用性问题。 有很多人,包括我在内,都希望恢复 IDEA 6 中的旧发现:http:// www.jetbrains.net/devnet/thread/269343 http://www .jetbrains.net/jira/browse/IDEADEV-22804

(也许有一天我会创建自己的 IDE,为此我可以设计“完美”的用户界面。:)

An important thing about Find and Replace is being able to see with one view, that what source text will be replaced and what will be the result, before actually changing any files (and even after changing, allow undo). I don't know whether any editor does that right, but to get an idea of what I'm saying, look at how IntelliJ IDEA's Find Usages (Alt+F7) works (it shows a code snippet of what it finds, and shows them all on one page) and combine that with how IDEA's Version Control History shows what has changed on each line (highlighting the exact words that were added/changed/removed, not the whole line).

P.S. Don't create the same kind of firefox-style-find-bar as IDEA has right now, unless you understand all the issues involved. The current find bar was added in IDEA 7 and it has some usability issues related to keyboard control. There were many people, including me, who wanted the old find from IDEA 6 back: http://www.jetbrains.net/devnet/thread/269343 http://www.jetbrains.net/jira/browse/IDEADEV-22804

(Maybe some day I'll create my own IDE, for which I can design the "perfect" user interface. :)

莫相离 2024-07-26 06:51:20

Coda 有一个非常棒的“革命性”查找和替换引擎,它:

革命性的查找/替换。 当然,我们有常规的 ol' Grep。 但我们还提供了一个带有拖放简单性的 Grep——Coda 优先。 想要交换宽度和高度标签吗? 就像搜索 width=“x” height=“y” 并将其替换为 width=“y” height=“x” 一样简单。 就是这样:剩下的由 Coda 完成。

Coda has a totally awesome "revolutionary" find and replace engine, that:

Revolutionary Find/Replace. Sure, we've got regular ol' Grep. But we also provide a Grep wrapped with drag and drop simplicity — a Coda first. Want to swap the width and height tags? It’s as simple as searching for width=“x” height=“y” and replacing it with width=“y” height=“x”. That’s it: Coda does the rest.

—━☆沉默づ 2024-07-26 06:51:20

我用过的最好的“查找和替换”来自 FrontPage 2003 和 SharePoint Designer 2007。实现简单,而且我喜欢我经常使​​用的“替换操作”和“HTML 规则...”。 也支持正则表达式,但我很少使用。

The best "Find and Replace" I have used is from FrontPage 2003 and SharePoint Designer 2007. Simple implementation, and I love the "Replace Action" and "HTML Rules...", which I use often. Supports regular expressions also, but I use rarely.

寄人书 2024-07-26 06:51:19

我用过的最好的一个实用程序是灵活的重命名器。 它使用简单,支持正则表达式,并在提交之前准确预览它将更改的内容。

另一种效果很好的工具是 Ultra Edit。 我喜欢您可以查看所有打开的文件或路径中的所有文件,屏蔽文件名以进行搜索,并在查找字符串和替换字符串时使用正则表达式。 按对话框中的帮助按钮即可直接进入包含正则表达式语法的页面。

我经常使用 UltraEdit 对 .Net 项目进行更改,因为它比 VS 使用更简单且更可靠。 我讨厌在 Visual Studio 中使用查找/替换

我还喜欢您可以将搜索定向到编辑窗口,在该窗口中附加每个新搜索,以便您可以看到所有以前的搜索。

http://flexible-renamer.en.softonic.com/

http://www.ultraedit.com/

The best one I've used is the utility Flexible Renamer. It is simple to use, supports regular expressions and previews exactly what it will change before you commit.

Another one that works well is Ultra Edit. I like that you can look in all open files or all in a path, mask out filenames to search and use regular expressions on find string and replace string. Pressing the help button in the dialog box brings you right to the page with the regex syntax.

I often use UltraEdit to make changes on a .Net project as it's simpler to use and more reliable than VS. I hate using find/replace in Visual Studio
.
I also like that you can have the searches directed to an edit window where it appends each new search so you can see all previous ones.

http://flexible-renamer.en.softonic.com/

http://www.ultraedit.com/

似梦非梦 2024-07-26 06:51:19

Visual Studio 中的“查找”包括许多选项:

  • 从工具栏(或 Control-D)快速查找。
  • 增量搜索
  • 可停靠对话框,其中包含用于在当前文件、所有打开的文件、当前项目或整个工作区中查找的选项。
  • 纯文本、全字和正则表达式支持
  • 在文件中查找,并具有命名的(用户可定义的)文件夹集。

用户文档位于此处

Find in Visual Studio includes many options:

  • Quick find from tool bar (or control-D).
  • Incremental search
  • Dockable dialogue with options to find across current file, all open files, current project or whole workspace.
  • Plain text, whole word and regex support
  • Find in files, with named (user definable) sets of folders.

User documentation is here.

葵雨 2024-07-26 06:51:19

看看那一次日食。 它可以在整个工作空间中交互式地查找和替换

Look at the one eclipse has. It can find and replace interactivly across the whole workspace

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