IntelliJ IDEA - 一些个人操作习惯配置

文章目录


激活

配置SDKs路径设置必选
SDKs启动页 → Configure → Structure for new Projects → Platform Settings → SDKs选择本地jdk目录
Global Libraries启动页 → Configure → Structure for new Projects → Platform Settings → Global Libraries选择本地jdk/sdk目录
Project启动页 → Configure → Structure for new Projects → Project Settings → Project选择jdk版本
Libraries启动页 → Configure → Structure for new Projects → Project Settings → Libraries选择本地jdk目录
设置项路径设置备注
Maven homeSettings → Build → Build Tools → Maven → Maven home directory选择本地maven目录
settings.xmlSettings → Build → Build Tools → Maven → User settings file选择本地maven/conf/settings.xml
本地仓库路径Settings → Build → Build Tools → Maven → Local repositoryLinux:
/home/xxx/.m2/repository
Windows:
自己设置repository,不要放系统盘就行
版本控制忽略文件Settings → Editor → File Types → Ignore files and folders.idea;target;*.iml;*.log;
code文件编码 1Settings → Editor → File Encoding → Global Encoding / Project Encoding / Properties FilesUTF-8
code换行符 1Settings → Editor → Code Style → General → Line separatorUnix and macOS (\n)
code字符缩进Settings → Editor → Code Style → 选择需要调整的语言
(前提:已安装对应的Idea插件)
Scala
Tab size:4
Indent:4
Continuation indent:4
关闭Toolbox自动升级JetBrains Toolbox → 右上角设置功能 → 所有Update …… automaticallyX
关闭IDEA自动升级Settings → Apperarance&&Behavior → System Settings → Updates → 所有Automatically ……X
SVN初始化交互Settings → Version Control → Subversion → Enable interactive mode
自动清空commit msgSettings → Version Control → Commit Dialog → Clear initial commit message
鼠标悬浮提示Settings → Editor → General → Other → Show quick documentation on mouse move Delay(ms):800
code自动换行Settings → Editor → General → Soft Wraps → Soft-wrap files(新增*.*)
code提示不区分大小写Settings → Editor → General → Code Completion → Match caseX
可断网创建Maven工程Settings → Build → Build Tools → Maven → Runner → VM Options-DarchetypeCatalog=internal
可选值为:remote,internal ,local等
调整菜单栏字体Settings → Apperarance&&Behavior → Apperarance → Use custom font(DejaVu Sans / 18)
启动默认项目列表 2Settings → Apperarance&&Behavior → System Settings → Startup/Shutdown → Reopen last project on startupX
调整工作区字体Settings → Editor → Font → Font / SizeDejaVu Sans Mono / 22
背景保护色Settings → Editor → Color Scheme → General → Text → Default text → Background(#C7EDCC)
自动保存Intellij IDEA 设置自动保存时间、提示未保存的*星号.
code模板Settings → Editor → Live Templates → 选中scala → + → Live Template1、填写模板
2、Applicable in Scala:code
标签换行显示Settings → Editor → General → Editor Tabs → Appearance → Show tabs in one rowX
显示空格符Settings → Editor → General → Appearance → Show whitespaces
显示方法分隔符Settings → Editor → General → Appearance → Show method separators
win使用
git-bash.exe
Settings → Tools → Terminal → Application settings → Shell path选择:
安装目录\Git\bin\bash.exe
commit侧边栏标签Settings → Version Control → Commit → Use non-modal commit interface版本2020.1.1+
.
快捷键
格式化代码Ctrl + Alt + L
(前提:字符缩进 设置项已经设置)
.
全部代码折叠Ctrl + Shift + -/+折叠/展开
部分代码折叠Ctrl + -/+折叠/展开
切换大小写Ctrl + Shift + u.
整行代码移动Ctrl + Shift + ↑↓
Alt + Shift + ↑↓
.
pom.xml依赖自动提示Ctrl + Alt + 空格先填写<artifactId>xxx</artifactId>
Recent Files(近期文件)Ctrl + E.
搜索类Ctrl + N.
搜索文件Ctrl + Shift + N.
搜索符号/标识Ctrl + Shift + Alt + N.
快速生成变量Ctrl + Alt + V.
转跳下一行Shift + Enter.
.
Other
显示Main MenuCtrl + Shift + A → Actions → 搜索menu
查看code历史右键代码文件 → Local History → Show History.
LocalHistory存储路径Linux:
/home/xxx/.IntelliJIdea2019.3/system/LocalHistory
Windows:
C:/Users/xxx/.IntelliJIdea2019.3/system/LocalHistory
.
.
Idea 常用插件
.ScalaJetBrains下载
.Git Commit TemplateJetBrains下载
.GiteeJetBrains下载
.Alibaba Cloud ToolkitJetBrains下载
阿里官网
..ignoreJetBrains下载
去掉顶栏白边decorateJetBrains下载

  1. Java开发手册
    (三) 代码格式
    10.【强制】IDE 的 text file encoding 设置为 UTF-8;IDE 中文件的换行符使用 Unix 格式,不要使用 Windows 格式 ↩︎ ↩︎

  2. 启动默认项目列表图文教程:
    IntelliJ IDEA - 启动进入项目列表,不进入上一次的项目 ↩︎

  • 2
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值