Book Image

PhpStorm Cookbook

By : Mukund Chaudhary
Book Image

PhpStorm Cookbook

By: Mukund Chaudhary

Overview of this book

Table of Contents (16 chapters)
PhpStorm Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Moving elements


Any keen software engineer knows the importance of cut or copy and paste. The information associated with this important statement is given here:

  • Cutting and pasting is faster than copying and pasting. However, cutting and pasting changes the location of the selected element. Also, copying keeps the original in place, whereas cutting removes it from where it was.

Any dedicated software engineer will already have this knowledge through past experience.

How to do it...

We have talked about renaming elements, copying elements, and now, it's time to move a directory.

Moving a directory

If you are sure that somewhere, your architecture has changed in such a way that your grouping has changed, you should be prepared to move an entire directory (your grouping) to some other grouping (some other directory or location). In order to move a directory, you need to perform the following steps:

  1. You need to go to the Project view, select the desired directory (also known as grouping), access the...