在eclipse中查找/替换工作区 [英] Find/replace across workspace in eclipse

查看:125
本文介绍了在eclipse中查找/替换工作区的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


可能重复:

Eclipse替换所有类中的文本?

I想要用Foo替换Foo.bar()中的所有实例,覆盖eclipse中工作空间中的所有文件。有没有办法这样做?

I want to replace all instances of Foo.bar() with Foo across all files in my workspace in eclipse. Is there a way of doing this?

推荐答案

当您在eclipse中进行基于文本的搜索(使用手电筒按钮屏幕顶部并选择正确的选项卡)对话框底部有一个Replace ...按钮。按此,而不是搜索,您可以进行全局查找和替换。

When you do a text-based search in eclipse (using the flashlight button at the top of the screen and selecting the right tab) there's a "Replace..." button at the bottom of the dialog. Press that, instead of search, and you can do a global find and replace.

或者,您可以使用重构功能将其更改为其他内容。

Alternatively, you can use the refactoring feature to change it to something else.

这篇关于在eclipse中查找/替换工作区的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆