How does one set the default directory for new projects?

When I select 'File -> New Project' I would like to customize the default base path for "Location".

Currently it defaults to my Windows home directory /PhpStormProjects, and I would like it to default to another path.

Is this possible?

6 comments
Comment actions Permalink

Hi there,

AFAIK it should remember your last location -- at very least it does this for me.

0
Comment actions Permalink

It certainly does it in WebStorm 9.0, but it doesn't keep track of it in PhpStorm, and I can't find any config settings to change.

0
Comment actions Permalink

There is no GUI settings for that

But if you have brave heart .. you can edit config file directly :)

  1. Close IDE
  2. Open this file in any text editor: C:\Users\USERNAME\.WebIde70\config\options\ide.general.xml (path is for PhpStorm v7 on Windows 7; for other OS/versions -- https://intellij-support.jetbrains.com/entries/23358108-Directories-used-by-the-IDE-to-store-settings-caches-plugins-and-logs )
  3. File is very short -- just find <option name="lastProjectLocation" node and edit "value" attribute -- put desired path there
  4. Save changes, Launch IDE and see if it worked for you.
0
Comment actions Permalink

Awesome!

That worked!  Thanks a bunch!  I've certainly created new projects with it before.  Interesting!  I'm betting I cleared something out that I wasn't supposed to the last time I messed with the config files a while back.

Thanks again!

0
Comment actions Permalink

DataGrip has to be one of the worst editors ever.  Doing simple things, like saving a .sql file is much more difficult than other IDEs.  File Save-As brings me to a dialog window that defaults the "To Directory" to some esoteric path, deep in the bowels of DataGrip.  Here's a suggestion, remember the last place that I saved to and bring that path up as a default directory.   Also, it would be nice for DataGrip to use a standard DOS File Dialog window for opening a .sql file; one with date and name sort maybe! 

0
Comment actions Permalink

@Jandrews

https://intellij-support.jetbrains.com/hc/en-us/community/topics/200381555-DataGrip

Try making a thread in DataGrip forums -- you may get more precise answer there.

PhpStorm may have completely different usage patterns where "Open File" be used extremely rarely (depends on the user, of course).

For example: since I wok with projects, I almost never need to use "Open File" dialog (to open a file that is outside of the project). And to locate a file that is part of the project I'm using "Navigate | File".

 

0

Please sign in to leave a comment.