简体   繁体   English

在PhpStorm中打开网络上的目录

[英]Open directory on network in PhpStorm

I'm working from a windows 7 PC and my source code is on an Ubuntu PC. 我正在Windows 7 PC上工作,源代码在Ubuntu PC上。 I have a shared folder on the Ubuntu computer that I can browse from my Windows computer. 我在Ubuntu计算机上有一个共享文件夹,可以从Windows计算机上浏览该文件夹。

I'm trying to open this directory in PhpStorm via File -> Open Directory. 我正在尝试通过文件->打开目录在PhpStorm中打开此目录。 The problem is I can't seem to browse the network using the File browser (shown below) PhpStorm provides. 问题是我似乎无法使用PhpStorm提供的文件浏览器(如下所示)浏览网络。 Also entering a path like \\my-dev-pc\\projects\\php\\cms just causes it to open my C:\\ directory. 同样输入\\ my-dev-pc \\ projects \\ php \\ cms之类的路径只会使它打开我的C:\\目录。

PhpStorm文件浏览器

Any ideas on how I can solve this? 关于如何解决这个问题有什么想法吗? Perhaps some configuration that allows PhpStorm to use the default Windows Explorer file browser? 也许允许PhpStorm使用默认Windows资源管理器文件浏览器的某些配置?

Since your project files are on network, you should follow below steps: 由于您的项目文件在网络上,因此您应该执行以下步骤:

file > new project from existing source. 文件>现有项目中的新项目。

Then you will get a pop up with options for connecting to remote machine/server using ftp/sftp. 然后,您将弹出一个对话框,其中包含用于使用ftp / sftp连接到远程计算机/服务器的选项。

Select that and then enter your credentials. 选择该名称,然后输入您的凭据。

There is also an option to select files which are accesile via network. 还有一个选项可以选择通过网络访问的文件。

This should help you. 这应该对您有帮助。

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM