O
O
Oleg Urievich2017-03-17 16:01:31
phpstorm
Oleg Urievich, 2017-03-17 16:01:31

How to massively edit pieces of code?

All health!
What we have: several dozen .tpl files with code, some of this code is the same in all files.
What needs to be done: change the selected identical pieces of code in all files to your own code in 1 click?
What tools to use?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
sim3x, 2017-03-17
@sim3x

Make refactoring
Fix in one file

P
Pavel, 2017-03-17
@PavelMonro

All modern text editors have data replacement in files, for example, in Sublime Text, Bluefish (Linux), Notepad++
If the code is the same everywhere, then using the editor, easily replace it with a new one

S
Sasha, 2017-03-17
@userAlexander

olega7or is convenient to use in large projects includes blocks that are often used.
as a result, if you need to edit the code, this can be done in one place, and not in files throughout the project.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question