如何更改 PHPStorm 8 默认的新项目位置? [英] How to change PHPStorm 8 default new project location?

查看:59
本文介绍了如何更改 PHPStorm 8 默认的新项目位置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我创建一个新项目时,每次都必须编辑当前项目位置,因为我们的全局项目是开启的:

~/Sites/

然而,PHPStorm 将其默认设置为:

~/PhpstormProjects/

如何将默认位置更改为我的位置?

解决方案

没有用于此的 GUI.

PhpStorm 应该记住上次使用的文件夹(当您成功创建新项目时)并默认为下一个使用它(对我来说是这样;虽然我从 v1 开始使用相同的路径......也许从那时起就被破坏了).

如果没有,如果你有勇气..你可以直接编辑配置文件:)

PhpStorm v8 及更早版本:

  • 关闭 IDE
  • 在任何文本编辑器中打开此文件:C:UsersUSERNAME.WebIde80configoptionside.general.xml(路径适用于 Windows 7 上的 PhpStorm v8;适用于其他操作系统/versions 请参阅此链接:

    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:

    PhpStorm v9 and newer: such setting is now located in recentProjectDirectories.xml file -- look for <option name="lastProjectLocation" value="LAST_PATH_HERE" /> 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.


    UPDATE 2018-05-25:

    2018.2 will have a GUI field for that (Settings/Preferences | Appearance & Behavior | System Settings) -- see this comment.

    这篇关于如何更改 PHPStorm 8 默认的新项目位置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆