Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I have multiple files open in tabs in TeXnicCenter, and I want to run a find-and-replace on every file simultaneously. Is there an easy way to do this?

Currently, I am using Ctrl+H in each file separately, and it is a pain to go through all of them. I'm not sure what exactly the "Find in Files..." option does, but it doesn't seem to work.

share|improve this question
add comment

2 Answers 2

up vote 6 down vote accepted

As far as I see search and replace in more than one file is not possible inside of TeXnicCenter (searching inside of one file is, though). For that you need to change to another text editor. Searching only is possible over the menu “Search” and the menu entry “Find in Files” or by pressing Ctrl+Shift+F. It does exactly what it says: It lists the findings of a given pattern (“Find what”) inside of given files or file types (“In files/file types”), which are located in a selected folder/directory (“In” - you can select, that subfolders are searched, too, but it seems, it’s the default), no more, no less.

TeXnicCenter: Find in Files dialogue

Text editors for Windows where I know, that, what you want, is possible (I’m sure there are more):

(All off these with syntax highlighting for TeX files)

share|improve this answer
1  
You could add TeXworks to the list. –  Torbjørn T. Mar 11 '12 at 21:30
add comment

TeXnicCenter shows you, as @Speravir said in his answer, a list of findings of a given pattern. You can click on each entry of this list and TeXnicCenter shows you the code in his great code window. If necceccary TeXnicCenter loads the tex file and shows the part with the serched pattern. There you can check and change the pattern, if you need.

I start at the end of this list and have so the advantage that the linenumers do not change when I change patterns (for example delete the pattern or insert more text).

share|improve this answer
1  
Thanks for the addition. BTW I do so – going backwards, I mean. –  Speravir Aug 21 '12 at 23:15
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.