Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Find and Replace All File Names in Folder - PHPStorm / WebStorm

Let's say I have the following directory structure:

-Root
    -some_file.php
    -other_file.php
    -third_file.php

How do I replace every instance of file in the above file names?

like image 377
Lloyd Banks Avatar asked Mar 18 '15 14:03

Lloyd Banks


People also ask

How do I search the whole project PhpStorm?

From the main menu, select Edit | Find | Find in Files Ctrl+Shift+F . In the search field, type your search string. Alternatively, in the editor, highlight the string you want to find and press Ctrl+Shift+F . PhpStorm places the highlighted string into the search field.

How do I search all files in WebStorm?

Search for files and foldersPress Ctrl+Shift+N and start typing your query, CamelCase and snake_case are supported. The list shrinks as you type. Select the file or folder you need and press Enter . If you selected a file, WebStorm opens it in a new editor tab.

How do I rename a file in PhpStorm?

Rename a file or directory Select a desired file in the Project tool window. Choose Refactor | Rename on the main or context menu or press Shift+F6 . In the Rename dialog that opens, specify the new filename. Select the Search in comments and strings checkbox to let PhpStorm apply changes to comments and strings.


1 Answers

PhpStorm does not cover this task. You can only rename single file one by one or use custom shell script.

like image 169
funivan Avatar answered Oct 02 '22 10:10

funivan