Change the default location of Pycharm Project
Solution 1
I know this is an old question, but is is certainly possible as of now
Settings | Appearance & Behaviour | System Settings | Default directory
Solution 2
In fact, this is possible. In the IDE settings folder (https://www.jetbrains.com/help/pycharm/project-and-ide-settings.html), under config/options/recentProjectDirectories.xml
, you can add an option lastProjectLocation
. It wil honor this setting when creating new projects. My recentProjectDirectories.xml looks like this:
<application>
<component name="RecentDirectoryProjectsManager">
<option name="lastProjectLocation" value="$USER_HOME$/my_projects" />
</component>
</application>
In fact, for most options that you want to customize, you could do a diff of the config/options
folder before and after you make the change: this way you can find out a lot about how PyCharm (or any IntelliJ tool) configures its editor.
Solution 3
I haven't found an explicit option for doing this in PyCharm, but the following steps have worked as an alternative:
- Move your PycharmProjects folder to the desired location.
- When you create a new project, press the "..." button to the right of the path (This is on the pop up window that asks for location and interpreter).
- Navigate to the new location of PycharmProjects and select that directory.
- Add the name of the new project to the directory location (ie. /home/alex/Documents/PycharmProjects/new_project_name)
Now, whenever you create a new project, the location will default to the last chosen path.
This wouldn't be a good solution for someone who is creating projects in many different directories, rather than just PycharmProjects. All my projects are within PycharmProjects and this works just fine.
Solution 4
PyCharm (since at least version 2017) remembers the parent directory of the last place where you created a project. So create a junk project in the directory that you want to be your default projects directory, then close that project, and delete it from disk. The next time you create a project, pycharm will automatically put you in that directory.
Solution 5
It's not a provided option. See this old thread (2003) on devnet.jetbrains.com where this is being discussed.
Subsequent requests to specify a default directory for projects has gone unanswered:

reducing activity
due to stackexchange company deciding to exploit community, randomly fire the best employees, libel prominent users I decided to reduce my activity and delete my content that I contributed and I am still able to delete
Updated on December 10, 2021Comments
-
reducing activity about 1 year
I am using PyCharm 3.4.1 on Ubuntu 14.04. For new project it suggests
~/PyCharmProjects
for storing project folders. Is it possible to change the location and name of this proposed folder?(I couldn't find any reference to changing it in the interface, on the JetBrains site, or in the settings files. Either it isn't possible or (I hope) I missed something.)
Note, it is not a duplicate of Can I change the location/name of PyCharmProjects? - I am aware that it is possible to change proposed path for every created project - but I want defaults that I like.
-
estephan500 over 5 yearssorry to be a novice on this one... This item seems to be pretty handy. However, I'm novice enough not to be confident as to where I would put the text that you are suggesting. So... if I wanted to force the default directory to be ~/Dropbox/L-PROGRAMMING/Python ... (1) what actual config file do I edit (you don't mention its name) ... (2) what string would do it for me? *** Note, I'm on MacOS... to make it more annoying... :)
-
estephan500 over 5 yearsBravo... My own planned method would work just fine with that you provided here!
-
oczkoisse about 4 yearsThe above works. Just as a precaution, though, make sure PyCharm is not running when the above change is made, otherwise the changes may get overwritten when PyCharm is closed.
-
Mukul Anand over 2 yearsThe option is now available in settings > Appearance & Behaviour > system settings > default directory for newer versions of Jetbrains IDEs. After this , every new project that you create will have the default directory path prepended to it.
-
Joshua Craven about 1 yearYour answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.
-
rwired 6 monthsRestart of PyCharm is necessary for this setting to take effect (confirmed on v2020.3.5/Win)