How to do a global search/replace across files in Eclipse 3.2
The location of this command is not very intuitive. To search and replace in multiple files you need to select "Search" > "File...".Step by step:
- Select the text in a file
- From the "Search" menu, select "File...". This will bring up the "Search" dialog box.
- At the bottom of the dialog, click "Replace..."
- This will bring up the "Replace" dialog box where you can type in your replacement text and replace individual occurrences or all occurrences.
8
Comments
—
Comments feed for this post
#2 LindsayStanleyKay commented on 2007-12-21:
I'll second that, cheers! I was about to hunt for some sort of plugin to do global search and replace!
I wonder if there is any way to do refactoring across multiple projects, ie. update import statements, references in dependent projects etc?
#3 Igor Milovanović commented on 2008-06-15:
thanx. that was what i was looking for... sometimes you just need to look a few more seconds :)
#4 asawari commented on 2008-07-09:
Hi...I am developing an application in eclipse rcp.I want to implement this multifile search functionality as is in eclipse in my application.can you help me with what plugins I should use.
#7 Wojtek commented on 2009-11-24:
well, Eclipse UX sucks. Thanks for revealing this so hidden (really) functionality
#8 jim pruett commented on 2010-07-22:
'have been using Eclipse for 12months and you have finally shown me how to do File-S/R... Thanks!
Post a comment
About
I'm Eliot and this is my notepad for programming topics such as Python, Django, Ubuntu, Emacs, etc... more »
Search Blog
Tags
-
algorithms
(4)
-
aws
(8)
-
blogproject
(20)
-
c_cplusplus
(12)
-
cardstore
(8)
-
colinux
(2)
-
concurrency
(9)
-
conkeror
(2)
-
cygwin
(18)
-
datastructures
(15)
-
datetime
(3)
-
dell
(3)
-
django
(39)
-
emacs
(20)
-
files_directories
(10)
-
install_setup
(7)
-
javascript
(3)
-
keyboard
(6)
-
matplotlib
(5)
-
mercurial
(4)
-
nginx
(2)
-
preferences
(8)
-
processes
(3)
-
pyqt
(18)
-
python
(122)
-
ratpoison
(3)
-
regexes
(5)
-
rsync
(3)
-
softwaretools
(17)
-
sql
(13)
-
ssh
(7)
-
subversion
(6)
-
twisted
(6)
-
ubuntu
(60)
-
urxvt
(5)
-
vxworks
(25)
-
webservices
(4)
-
wmii
(7)
Blogroll
- Adam Gomaa
- Alex Clemesha
- Amir Salihefendic
- Armin Ronacher
- David Beazley
- David Ziegler
- Duncan McGreggor
- Gareth Rushgrave
- Glyph Lefkowitz
- Guido van Rossum
- Ian Bicking
- Jacob Kaplan-Moss
- James Bennett
- James Tauber
- Jesper Noehr
- Matt Harrison
- Nikolay Kolev
- Parand Darugar
- Peter Baumgartner
- Peter Bengtsson
- Rob Hudson
- Simon Willison
- Will McGugan
#1 Tom commented on 2007-09-23:
Thank you!
I was having trouble finding this. Very useful for large projects.