PhpStorm – Advantages of Editing Deployed Files Directly vs Downloading and Syncing

If I edit files directly on the deployed server, would any PhpStorm functionality be lost?

Yes. To name a few:

  • IDE cannot index files that are not in the project and therefore cannot provide any code completion help for classes/functions/etc that defined on remote only files;
  • True project-wide search is not possible (as it works with local files only). This means that you may do find/replace on local files but any remote-only matches will simply not be found;
  • Because there is no indexing … any sort of refactoring can only be applied to local files only .. which may lead to the fact that (for example) class name is changed only in half of the places;
  • Local History (simple built-in VCS which remembers all your edits between file saves) is not available.

Remote-only editing can be practical only if you need to make some quick changes (e.g. fix typo; change some config value) or where no cross-referencing is required (e.g. you know for sure that file with such name exists at that location; or class has such method with those parameters etc). With the same success you can replace PhpStorm IDE with much faster Notepad++/Sublime or any other text editor with FTP/SFTP support.

Leave a Comment