Intellij idea 我应该将哪些IntelliJ配置文件保存在我的dotfiles中?
我想将我的IntelliJ配置文件保存在我的dotfiles repo中,但我的Intellij idea 我应该将哪些IntelliJ配置文件保存在我的dotfiles中?,intellij-idea,dotfiles,Intellij Idea,Dotfiles,我想将我的IntelliJ配置文件保存在我的dotfiles repo中,但我的~/.IntelliJIdea2016.1文件夹权重>1.3G:( ~/.IntelliJIdea2016.1/config/静止重量>215M ~/.IntelliJIdea2016.1/config/plugins/包含大量二进制文件…不是点文件的最佳候选文件:( 任何人试图保存IntelliJ配置而不使用导出/导入设置菜单选项?无需存储IntelliJ配置文件,只需使用 插件 请看这篇文章:遗憾的是,这并不简单
~/.IntelliJIdea2016.1
文件夹权重>1.3G:(
~/.IntelliJIdea2016.1/config/
静止重量>215M
~/.IntelliJIdea2016.1/config/plugins/
包含大量二进制文件…不是点文件的最佳候选文件:(
任何人试图保存IntelliJ配置而不使用
导出/导入设置
菜单选项?无需存储IntelliJ配置文件,只需使用
插件
请看这篇文章:遗憾的是,这并不简单。用户配置文件夹没有很好的文档记录,并且历史上包含了一堆默认垃圾,这些垃圾正在慢慢被删除(请参阅和)。设置文件的文档记录也很差;我的改进请求被拒绝) 我控制我的设置的版本。如果您请求访问,您可以在中查看它,并在中查看注释 我将我的
.gitignore
设置为默认情况下忽略所有内容,然后我将所需文件列为白名单。对于IntelliJ,我不知道从哪里开始,所以我将整个文件夹列为白名单,然后将一堆文件列为黑名单
我的黑名单并没有完全回答您关于要包含哪些文件的问题,但它确实让您知道要排除哪些文件。如果我在某个时候弄清楚要包含哪些插件,我会尝试更新它,但这是一个插件文件之类的乱七八糟的东西
现在黑名单是这样的:
# IntelliJ IDEA stuff
.idea
!config/intellij-idea-latest/**
!projects/bi-idea/workspace.xml
# statistics files
config/intellij-idea-latest/options/statistics*
config/intellij-idea-latest/options/feature.usage.statistics.xml
config/intellij-idea-latest/options/usage.statistics.xml
config/intellij-idea-latest/options/statistics.application.usages.xml
# user files ??
config/intellij-idea-latest/user*
# other
config/intellij-idea-latest/options/atlassian-ide-plugin.app.xml
config/intellij-idea-latest/options/cachedDictionary.xml
config/intellij-idea-latest/options/customization.xml
# has my autobracket disable
config/intellij-idea-latest/options/CodeGlance.xml
# config/intellij-idea/options/editor.codeinsight.xml
config/intellij-idea-latest/options/databaseDrivers.xml
config/intellij-idea-latest/options/debugger.xml
config/intellij-idea-latest/options/dimensions.xml
config/intellij-idea-latest/options/extensionsRootType.xml
config/intellij-idea-latest/options/filetypes.xml
config/intellij-idea-latest/options/find.xml
config/intellij-idea-latest/options/find.recents.xml
config/intellij-idea-latest/options/jdk.table.xml
config/intellij-idea-latest/options/gemmanager.xml
config/intellij-idea-latest/options/github_settings.xml
config/intellij-idea-latest/options/gradle.run.settings.xml
config/intellij-idea-latest/options/extensionsRootType.xml
config/intellij-idea-latest/options/hg.xml
config/intellij-idea-latest/options/ignore.xml
config/intellij-idea-latest/options/markdown.xml
config/intellij-idea-latest/options/multimarkdown.local.xml
config/intellij-idea-latest/options/multimarkdown.shared.xml
config/intellij-idea-latest/options/options.xml
config/intellij-idea-latest/options/other.xml
config/intellij-idea-latest/options/packages.xml
config/intellij-idea-latest/options/pomodoro.state.xml
config/intellij-idea-latest/options/project.default.xml
config/intellij-idea-latest/options/proxy.settings.pwd
config/intellij-idea-latest/options/recentProjects.xml
config/intellij-idea-latest/options/recentProjectDirectories.xml
config/intellij-idea-latest/options/remote-servers.xml
config/intellij-idea-latest/options/runner.layout.xml
config/intellij-idea-latest/options/scratches.xml
config/intellij-idea-latest/options/stubIndex.xml
config/intellij-idea-latest/options/updates.xml
config/intellij-idea-latest/options/usageView.xml
config/intellij-idea-latest/options/vcs.xml
config/intellij-idea-latest/options/window.manager.xml
config/intellij-idea-latest/options/window.state.xml
# turn off those auto-update messages...
config/intellij-idea-latest/port
config/intellij-idea-latest/plugins/*
config/intellij-idea-latest/tasks/*
config/intellij-idea-latest/extensions/
config/intellij-idea-latest/jdbc-drivers/*
# region START UNIGNORE IntelliJ
!config/intellij-idea-latest/scratches/
!config/intellij-idea-latest/consoles/
config/intellij-idea-latest/consoles/.history/*
# General settings
# config/intellij-idea-latest/sonarlint/
config/intellij-idea-latest/javascript/nodejs/**
# config/intellij-idea-latest/options/editor.codeinsight.xml # has my autobracket disable
# endregion END UNIGNORE Intellij
这就留下了大量未被列入黑名单的文件——加上我有时会将我的.idea
文件进行符号链接,并对这些设置进行版本控制,尽管workspace.xml
有很多内容,而且它一直在变化(请参阅)
此外,请注意下面为作用域显示的“共享”按钮,因为这些按钮似乎控制是否将设置共享给配置
设置配置最优雅的设置来自VSCode-希望Jetbrains在某个时候能够解决这个问题并复制它们:
您可以“通过设置存储库共享设置”,也可以“使用设置同步插件共享设置”
有关更多详细信息,请访问。如果链接过期,请在下面的评论中告诉我 这不包括版本历史记录,对吗?不,不会:-(看起来主要的问题是和