Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Howto replace pattern in all (open/project) files ?
Howto replace pattern in all (open/project) files ? [message #637198] Thu, 04 November 2010 14:49 Go to next message
Ben StoverFriend
Messages: 108
Registered: January 2010
Senior Member
Assume I have currently open 20 files.

How can I replace textually all patterns "aaa" by "bbb" in

a) only all currently open files (tabs)
b) all files of the currently active/marked package (regardless if they are currently open or not)
c) all files in currently active/marked project (regardless if they are currently open or not)

Ben
Re: Howto replace pattern in all (open/project) files ? [message #637235 is a reply to message #637198] Thu, 04 November 2010 16:46 Go to previous message
Deepak Azad is currently offline Deepak AzadFriend
Messages: 543
Registered: July 2009
Senior Member
On 11/4/2010 8:19 PM, Ben wrote:
> Assume I have currently open 20 files.
>
> How can I replace textually all patterns "aaa" by "bbb" in
>
> a) only all currently open files (tabs)
I think you will need to select all the files in Package Explorer (PE)
> b) all files of the currently active/marked package (regardless if they
> are currently open or not)
> c) all files in currently active/marked project (regardless if they are
> currently open or not)
- Select the package/project in PE
- Search > Search (or Ctrl+H)
- 'Scope': 'Selected Resources'
- Use the 'Replace' button at the bottom (it will first search and then
ask you for the replacement text)
Previous Topic:Annotations and com.sun.mirror API
Next Topic:Problem while uploading an image using UploadBean in Eclipse Helios
Goto Forum:
  


Current Time: Wed Sep 25 17:10:11 GMT 2024

Powered by FUDForum. Page generated in 0.03180 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top