Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change the default location of Pycharm Project

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.

like image 464
reducing activity Avatar asked Nov 17 '14 20:11

reducing activity


People also ask

Where are PyCharm projects stored?

Pycharm has a default project location (which might depend on the PyCharm version and/or OS). At least in some cases it's ~/PyCharmProjects . Note that this default location shows up just as a suggestion when a new project is created, but one can choose a different location.

How do I change project settings in PyCharm?

To configure project settings, select PyCharm | Preferences for macOS ( Ctrl+Alt+S ) or File | Settings for Windows and Linux. icon apply only to the current project. Other settings are global and apply to all existing projects.


2 Answers

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.

like image 163
mfiers Avatar answered Sep 20 '22 21:09

mfiers


I know this is an old question, but is is certainly possible as of now

Settings | Appearance & Behaviour | System Settings | Default directory

See JetBrains support page

like image 33
Psionman Avatar answered Sep 22 '22 21:09

Psionman