phpstorm设置 打开文件所在目录,如何更改PHPStorm 8默认新项目位置?

When I create a new project, I must edit the current project location each time, because our global projects are on:

~/Sites/

However, PHPStorm sets it default as:

~/PhpstormProjects/

How can I change the default location as mine?

解决方案

There is no GUI for that.

PhpStorm should remember last used folder (when you successfully created new project) and use it by default for next one (does for me; although I'm using the same path since v1 .. maybe this was broken since then).

If it does not and if you have brave heart .. you can edit config file directly :)

PhpStorm v8 and earlier:

Close IDE

Open this file in any text editor: C:\Users\USERNAME\.WebIde80\config\options\ide.general.xml (path is for PhpStorm v8 on Windows 7; for other OS/versions please see this link: https://intellij-support.jetbrains.com/entries/23358108-Directories-used-by-the-IDE-to-store-settings-caches-plugins-and-logs )

File is very short -- just find

Save changes, Launch IDE and see if it worked for you.

PhpStorm v9 and newer: such setting is now located in recentProjectDirectories.xml file -- look for entry.

There is a ticket asking for a GUI setting for this: https://youtrack.jetbrains.com/issue/WI-8839 -- watch it (star/vote/comment) to get notified on progress.

For default folder for "Open Folder" kind of dialogs -- follow IDEA-84622 ticket.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值