Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
508 views
in Technique[技术] by (71.8m points)

deployment - PhpStorm - Advantages of Editing Deployed Files Directly vs Downloading and Syncing

I use PhpStorm remotely and on-site. I currently have the project downloaded at both locations and sync with the deployed server. I learned, however, that PhpStorm has the capability to edit deployed files directly which would eliminate the headache of remembering to sync every time I change locations.

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

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...