https://intellij-support.jetbrains.com/hc/en-us/articles/206544519-Directories-used-by-the-IDE-to-store-settings-caches-plugins-and-logs?page=2

https://intellij-support.jetbrains.com/hc/en-us/articles/206544519-Directories-used-by-the-IDE-to-store-settings-caches-plugins-and-logs?page=2

以Android Studio为例

Step1: 找到Jetbrain配置路径的文件idea.properties

一般为软件的安装目录的 bin 目录下.

  1. C:\Program Files\Android\Android Studio\bin​

Step2: 找到配置文件

一般为用户目录的一个和软件同名的隐藏目录

  1. C:\Users\mengxin\.AndroidStudio1.2​

该目录有如下文件,可能根据软件不同,目录不同, 其中config为配置文件.

将这些文件复制到 Dropbox 需要同步的目录.

Step3: 修改配置路径的文件

打开文件 idea.properties , 该文件的前 20几行基本是定义软件的各种目录的, 每一个配置都有详细说明

  1. # Use ${idea.home.path} macro to specify location relative to IDE installation home.
  2. # Use ${xxx} where xxx is any Java property (including defined in previous lines of this file) to refer to its value.
  3. # Note for Windows users: please make sure you're using forward slashes (e.g. c:/idea/system).
  4. #---------------------------------------------------------------------
  5. # Uncomment this option if you want to customize path to IDE config folder. Make sure you're using forward slashes.
  6. #---------------------------------------------------------------------
  7. # idea.config.path=${user.home}/.AndroidStudio.2/config
  8. #---------------------------------------------------------------------
  9. # Uncomment this option if you want to customize path to IDE system folder. Make sure you're using forward slashes.
  10. #---------------------------------------------------------------------
  11. # idea.system.path=${user.home}/.AndroidStudio.2/system
  12. #---------------------------------------------------------------------
  13. # Uncomment this option if you want to customize path to user installed plugins folder. Make sure you're using forward slashes.
  14. #---------------------------------------------------------------------
  15. # idea.plugins.path=${idea.config.path}/plugins
  16. #---------------------------------------------------------------------
  17. # Uncomment this option if you want to customize path to IDE logs folder. Make sure you're using forward slashes.
  18. #---------------------------------------------------------------------
  19. # idea.log.path=${idea.system.path}/log

所以,这里我们只需要将对应目录改成我们需要同步的目录即可.

这里我们发现 plugins和log目录是基于前两个目录的,所以只需要配置config和system,当然也可以只配置config目录,

  1. idea.config.path=H:/Dropbox/ZConfiguration/Andro-Studio-Win/config​

注意需要使用 forward slashes

注意事项

1. 建议不同的平台同步不同的配置, 因为存在平台的配置差异, 例如 Mac快捷键和Win不一样

2. Jetbrain的不同软件可能配置文件不一样, 例如Andorid 的plugin在config里面, 而IDEA的plugin 和config同一级目录

以下为参考材料:

IDEA 配置同步

IDEA 这样的神器在很多情况下比 VIM 强上不少,但依然需要不断的调教才能越来越称手。在公司配置好的设置、功能,回家又要再来一次?那得多蛋疼,配合强大的 Dropbox 来帮你自动保存配置吧。

此方法也适用于 JetBrains 家的其它 IDE,IntelliJ IdeaPyCharmWebStormPhpStormRubyMineAppCode

弄清楚默认配置文件路径

  1. Windows XP 保存在这 \Documents and Settings\.IntelliJIdeaXX
  2. Windows Vista, Windows 7, Windows 8 保存在 \Users\.IntelliJIdeaXX
  3. Unix/Linux 保存在 ~/.IntelliJIdeaXX (~ 就是 /home/ 目录)
  4. Mac 保存在 ~/Library/Preferences/IntelliJIdeaXX

补充说明

  • XX 表示产品的版本,它可能是 (70, 80, 90, 10, 11, 12)
  • 如果是 IntelliJ IDEA Community,那么文件名就是 IdeaICXX.
  • Jetbranis 家的其它 IDE 大概也这么回事,但文件夹名称不同。 WebStorm/PhpStorm 文件夹名是WebIde,PyCharm和RubyMine名称就是自己。
  • 官方说明:http://devnet.jetbrains.net/docs/DOC-181

复制到Dropbox,并修改设置

关闭IDEA,从你的默认配置目录里剪切 config 这个目录到你的 Dropbox 目录。

打开 IDEA目录\bin\idea.properties,找到 15 行,把 idea.config.path 前面的 # 号去掉,= 号后面的路径修改成前的配置文件夹的目录。记得把路径中的 “\” 换成 “/“ 。

第二天到公司把 idea.properties 照着改一次。

IntelliJ IDEA files locations (caches, plugins, logs) on different operating systems

版本 16

创建于: 2005-10-18 上午3:14 作者 Serge Baranov - 最后修改:  2013-11-26 下午5:48 作者 Serge Baranov

This document is out of date, please refer to the new version: http://intellij-support.jetbrains.com/entries/23358108.

On Windows and Linux platforms IntelliJ IDEA stores its caches, configuration and plugins in the user's home directory (profile directory).

On Windows platform it's usually <SYSTEM DRIVE>\Documents and Settings\<USER ACCOUNT NAME>\.IntelliJIdeaXX.

On Windows VistaWindows 7 and later Windows versions the profile directory is <SYSTEM DRIVE>\Users\<USER ACCOUNT NAME>.

For Unix/Linux the home directory is ~/.IntelliJIdeaXX  (~ is usually an alias for /home/<USER NAME>)

Notes
XX represents product version and can be (70, 80, 90, 10, 11, etc.).
For IntelliJ IDEA Community the folder name is .IdeaICXX.

Under the .IntelliJIdeaXX directory the following subdirectories can be found:

  • Config: /config
  • Plugins: /config/plugins
  • Caches: /system
  • Logs: /system/log (also contains automatic thread dumps)

On Mac OS X IDEA uses the following directories:

  • Config: ~/Library/Preferences/IntelliJIdeaXX
  • System: ~/Library/Caches/IntelliJIdeaXX
  • Plugins: ~/Library/Application Support/IntelliJIdeaXX
  • Logs: ~/Library/Logs/IntelliJIdeaXX (starting from IntelliJ IDEA 9.0, older versions keep logs under System location)

For other products based on IntelliJ platform look for the product name instead of IntelliJIdea:

  • WebIde for WebStorm/PhpStorm
  • PyCharm
  • RubyMine

In some environments user's home directory is located on the mapped network drive which is unacceptable for IntelliJ IDEA. You'll notice the huge performance degradation. You may also want to move system directory to the faster or larger drive partition.

  • Config directory stores global IntelliJ IDEA configuration which is not specific to a project
  • System directory contains project caches, indices, compiler caches, jar caches, logs and thread dumps (except Mac), version control system caches, and some other system files
  • Plugins directory keeps third-party plug-ins which you install via Plugin Manager (bundled plug-ins are located in IDEA_HOME\plugins)

Locations of these directories can be modified in IDEA_HOME\bin\idea.properties file.

You will need to adjust the following parameters:

  • idea.config.path
  • idea.system.path
  • idea.plugins.path

Note for Mac OS X users: most likely you will not need to change the defaults, but if for some reason you want to do it, you can find the related settings in the Info.plist file located in IntelliJ IDEA Application directory.

Changing IDE default directories used for config, plugins, and caches storage

 

Common cases when you may need to change the default locations of the IDE files:

  • user profile drive runs out of space
  • disk is slow and you want to use faster HDD or SSD for caches
  • default user profile points to the UNC path unsupported by the IDE
  • home directory is on a network drive
  • user profile directory is not detected correctly (Java bug 4787931)
  • you want to create a portable installation on a USB stick
  • home directory is encrypted and slows down the IDE or causes caches corruption
  • caches should be excluded from the home directory backup
  • antivirus or search indexer is scanning the home directory affecting IDE performance
Locations can be changed by editing the following file:
  1. IDE_HOME\bin\idea.properties
Follow the comments in idea.properties file to change the defaults, make sure to un-comment the lines defining these properties:
  • idea.config.path
  • idea.system.path
  • idea.plugins.path
  • idea.log.path

Jetbrain系列软件配置文件同步的更多相关文章

  1. jetBrain系列软件

    请尽量支持正版软件!https://www.jetbrains.com/ 本文仅供参考 以下提供一种方法可以无限期体验JetBrain2016系列软件. 1.下载JetbrainsCrack-2.5. ...

  2. 同步IDEA系列软件的设置,再也不用但心我的配置丢失了

    同步IDEA系列软件的设置 问题描述:重装idea,之前配置好的快捷键就没有了.之前一直是每隔几个月要把配置导出一下,上传百度云盘.现在好了,通过配置可以自动同步配置了.我再也不用但心配置丢失了. 快 ...

  3. Debian系列软件管理(第二版)

    Debian系列软件管理 1.搜索软件包信息 apt-cache search apt-cache search yum 2.查看软件包信息 apt-cache show rpm 3.安装软件 apt ...

  4. Spark SQL慕课网日志分析(1)--系列软件(单机)安装配置使用

    来源: 慕课网 Spark SQL慕课网日志分析_大数据实战 目标: spark系列软件的伪分布式的安装.配置.编译 spark的使用 系统: mac 10.13.3 /ubuntu 16.06,两个 ...

  5. Atlassian 系列软件安装(Crowd+JIRA+Confluence+Bitbucket+Bamboo)

    公司使用的软件开发和协作工具为 Atlassian 系列软件,近期需要从腾讯云迁移到阿里云环境,简单记录下安装和配置过程.(Atlassian 的文档非常详尽,过程中碰见的问题都可以找到解决办法.) ...

  6. 如何排查sharepoint2010用户配置文件同步服务启动问题

    用户配置文件同步服务与 Microsoft Forefront Identity Manager (FIM) 交互,以与外部系统(如目录服务和业务系统)同步配置文件信息.启用用户配置文件同步服务时,将 ...

  7. zookeeper适用场景:配置文件同步

    问题导读:1.本文三个角色之间是什么关系?2.三个角色的作用是什么?3.如何代码实现这三个角色的作用? 在 zookeeper适用场景:zookeeper解决了哪些问题有关于分布式集群配置文件同步问题 ...

  8. 解决sharepoint 2010 用户配置文件同步服务 正在启动

    用户配置文件同步服务一直显示“正在启动”,而且无法停止,如下办法可以停止这个服务: 在sharepoint power shell 中执行下面的命令: Get-spserviceinstance 获取 ...

  9. WCF编程系列(四)配置文件

    WCF编程系列(四)配置文件   .NET应用程序的配置文件 前述示例中Host项目中的App.config以及Client项目中的App.config称为应用程序配置文件,通过该文件配置可控制程序的 ...

随机推荐

  1. PL/SQL Developper导入导出数据库的方法及说明

    导出步骤 1 tools ->export user object 选择选项,导出.sql文件. 2 tools ->export tables-> Oracle Export 选择 ...

  2. Git(工作区和暂存区概念)

    Git和其他版本控制系统如SVN的一个不同之处就是有暂存区的概念. 先来看名词解释. 工作区(Working Directory) 就是你在电脑里能看到的目录,比如我的learngit文件夹就是一个工 ...

  3. getResource()和getResourceAsStream以及路径问题【转】【补】

    一 getResource 用JAVA获取文件,听似简单,但对于很多像我这样的新人来说,还是掌握颇浅,用起来感觉颇深,大常最经常用的,就是用JAVA的File类,如要取得c:/test.txt文件,就 ...

  4. ELASTICSEARCH 搜索的评分机制

    从我们在elasticsearch复合框输入搜索语句到结果显示,展现给我们的是一个按score得分从高到底排好序的结果集.下面就来学习下elasticsearch怎样计算得分. Lucene(或 El ...

  5. MySQL备份工具之mysqldump使用

    MySQL备份工具之mysqldump使用说明 一.备份分类 根据能否停用数据库,将备份类型分为: 1. 冷备:数据库服务停止后备份 2. 温备:只能对数据库进行读操作,不能进行写操作 3. 热备:在 ...

  6. mysql:insert插入数据过慢如何解决,设置innodb_flush_log_at_trx_commit为0就能解决

    问题: 最近在做性能测试,造数据,发现insert好慢,只有几十条每秒,很奇怪,最后再网上找到了原因. 网文如下: MY SQL insert 速度过慢 最近在用MySQL做存储,测试中发现插入数据太 ...

  7. HDU 1039(字符串判断 **)

    题意是检查一个字符串是否满足三个条件: 一.至少有一个元音字母.二.不能出现三个连续的元音或三个连续的辅音.三.除了 ee 和 oo 外不能出现两个连续相同字母. 若三个条件都能满足,该字符串满足条件 ...

  8. 在Java中调用Python

    写在前面 在微服务架构大行其道的今天,对于将程序进行嵌套调用的做法其实并不可取,甚至显得有些愚蠢.当然,之所以要面对这个问题,或许是因为一些历史原因,或者仅仅是为了简单.恰好我在项目中就遇到了这个问题 ...

  9. Python3.6 Schedule模块定时任务

    本文使用Python的Schedule模块.Python访问数据库的框架SQLAIchemy 实现了一个:周期性读取mysql 数据的小示例. 一,编程环境 PyCharm2016,Anaconda3 ...

  10. 华为平板安装APK,提示“该安装包未包含任何证书”

    有的平板上会有错误现象 打包时签名勾选v1即可.