idea高级配置
2026/11/1小于 1 分钟
idea高级配置
1、jetbrains配置目录
IntelliJ IDEA 配置目录包含用户定义的 IDE 设置,如键位图、配色方案、自定义 VM options、 platform properties 等等。
~/Library/Application Support/JetBrains/<product><version>2、【git显示】IDEA设置git配置显示当前分支【云】
.bashrc新增即可然后,最后source一下就行
function git_branch {
branch="`git branch 2>/dev/null | grep "^\*" | sed -e "s/^\*\ //"`"
if [ "${branch}" != "" ];then
if [ "${branch}" = "(no branch)" ];then
branch="(`git rev-parse --short HEAD`...)"
fi
echo " ($branch)"
fi
}
export PS1='\u@\h \[\033[01;36m\]\W\[\033[01;32m\]$(git_branch)\[\033[00m\] \$ 'git补全的话
brew install bash-completion然后.bash_profile中
[[ -r "/usr/local/etc/profile.d/bash_completion.sh" ]] && . "/usr/local/etc/profile.d/bash_completion.sh"即可
扩展配置其他语言
- Q:pycharm给python2.7格式化的时候print总是换行咋办
- WebStorm的JavaScript
- phpstorm的PHP语言