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

Copying elements


A directory contains classes, classes contain methods and variables, methods contain variables, and methods use variables.

The point to prove is that everything is related in one way or another. You can equally want to copy a directory, as you want to copy a class safely to some location other than the current location or declaration.

How to do it...

Copying a directory means that somewhere, some concept has changed, which led to a regrouping of the classes. So, it will be better to think again. If you are still determined, you need to perform the following step:

  • Go to Project View, (Alt + 1), highlight the target directory, access the right-click context menu, go to Refactor, and then choose the Copy option. PhpStorm will ask you for the details. The details will be the new name, and the target directory under which you wish to copy the directory to. PhpStorm will copy that for you.

There is one more way to achieve the same effect for a directory:

  • You can also directly copy a...