更改Pycharm项目的默认位置 [英] Change the default location of Pycharm Project

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

问题描述

我在Ubuntu 14.04上使用PyCharm 3.4.1。对于新项目,建议使用〜/ PyCharmProjects 存储项目文件夹。可以更改此建议文件夹的位置和名称吗?

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?

(我在JetBrains网站上的界面中找不到更改它的引用,或者

(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.)

注意,它不是我可以更改PyCharmProjects的位置/名称吗?-我知道有可能更改每个创建的项目的建议路径-但我想要我喜欢的默认值。

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.

推荐答案

实际上,这是可能的。在IDE设置文件夹中( https://www.jetbrains.com /help/pycharm/project-and-ide-settings.html ),在 config / options / recentProjectDirectories.xml 下,您可以添加选项 lastProjectLocation 。创建新项目时,将尊重此设置。我的最近的ProjectDirectories.xml看起来像这样:

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>

实际上,对于大多数要自定义的选项,您可以对<$更改前后的c $ c> config / options 文件夹:这样一来,您可以了解有关PyCharm(或任何IntelliJ工具)如何配置其编辑器的很多信息。

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.

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

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