当前位置:网站首页>浅谈IDEA的优化和使用
浅谈IDEA的优化和使用
2022-06-30 02:52:00 【缘友一世】
工欲善其事,必先利其器。
IDEA作为JAVA开发的常用工具之一,相信有很多小伙伴们也常常使用,所以适当做一些优化可以更好的提高我们的效率。
但是别指望IDEA不占内存,那是不显示的……
一 关于IDEA的激活

- 但是推荐某宝……,花点小钱,就解决了。
二 推荐几个插件
2.1进行安装的位置:file->settings->plugins->macketplace

2.2 Chinese(Simplified)Language Pack【英语太好的大佬,请路过】

2.3 Rainbow Brackets

- 使用设置

- 使用设置
- 最近括号内容高亮效果:ctrl+鼠标右键单击
- 最近括号内容外暗淡效果:alt+鼠标右键单击
小编认为,这两个功能就像开灯和关灯一样,可以互相使用。
关闭高亮的效果时:使用alt+鼠标右键单击
关闭暗淡效果时:ctrl+鼠标右键单击
2.4 CodeGlance2
- 作用:在编辑代码最右侧,显示一块代码小地图

三 使用优化
3.1 设置背景图片

3.2 设置鼠标滑轮修改字体大小

3.3 设置鼠标悬浮提示

3.4 显示工具栏、工具窗口
- 方便使用


3.5 设置自动导包功能
- 提高编码效率

3.6 忽略大小写提示
- 提高开发效率

3.7 显示行号【默认显示】和显示方法分隔符
- 使代码的结构更清楚


3.8 取消单行显示tabs的操作【好用】
- 防止文件开的太多找不到需要的类文件


3.9 设置注释字体和颜色
- 默认注释,颜色不明显,可以自定义颜色——方便阅读

3.10 修改类头的文档注释信息
- 彰显个人成就,记录编辑时间

3.11 设置项目文件的编码
- 防止乱码

3.12 设置自动编译
- 及时编译防止运行旧的class文件

3.13省电模式的注意【不要勾选】

Intellij IDEA有一种叫做省电模式的状态,开启这种模式之后,Intellij IDEA会关掉代码检查和代码提示等功能。所以一般也可认为这是一种阅读模式,如果你在开发过程中遇到突然代码文件不能进行检查和提示,可以来看看这里是否有开启该功能。
3.14 垂直拆分和水平拆分


四 快捷键总结
| Shift+Enter | 在上一行的任何位置直接切换到下一行 |
|---|---|
| Ctrl+D | 复制鼠标所在的行到下一行 |
| Alt+Shift+上/下方向键 | 移动鼠标所在行到上/下一行 |
| Ctrl+shift+上/下方向键 | 移动所选的方法/类到其他方法/类的上边/下边【首先选中要移动的代码块】 |
| Alt+Enter | 快速创建方法/实例化对象【调用未创建的方法/未new关键字实例化一个Scanner对象】 |
| Alt+Insert | 快速生成构造器、重写方法 |
| Ctrl+H | 快速查看继承关系 |
| Ctrl+alt+T | 选中代码,包裹代码快捷键 |
| Ctrl+Shift+F | IntelliJ IDEA 全局搜索 |
| Ctrl+F | 只在当前文件进行文本查找 |
| Ctrl+O | 为了避免写错重写类和快速重写 |
五 断点调试
- Windows特有的一个特性,内存占用相对较少。

5.1 debug常用快捷键
| 名字 | 详解 |
|---|---|
| stepover | 进入下一步,如果当前行断点是一个方法,则不进入当前方法体内+ |
| stepinto | 进入下一步,如果当前行断点是一个方法,则进入当前方法体内+ |
| force stepinto | 进入下一步,如果当前行断点是一个方法,则进入当前方法体内+ |
| stepout | 跳出 |
| resume program | 恢复程序运行,但如果该断点下面代码还有断点则停在下一个断点上 |
| stop | 停止 |
| mute breakpoints | 点中,使得所有的断点失效 |
| view breakpoints | 查看所有断点 |
| Alt+F8 | 评估 |


5.2 条件断点——选中断点,右键设置条件

六 其他设置
6.1 取消更新

边栏推荐
- Interrupt operation: abortcontroller learning notes
- CMake教程系列-02-使用cmake代码生成二进制
- Lua Basics
- A quick look at the statistical data of 23 major cyber crimes from 2021 to 2022
- c#控制台格式化代码
- Linear algebra Chapter 4 Summary of knowledge points of linear equations (Jeff's self perception)
- Threejs mirror case reflector create mirror + house construction + small ball movement
- Mysql表数据比较大情况下怎么修改添加字段
- O & M (21) make winpe startup USB flash disk
- 原生JS怎么生成九宫格
猜你喜欢

Raki's notes on reading paper: neighborhood matching network for entity alignment

GTK interface programming (I): Environment Construction

Study diary: February 15, 2022

Visual HTA form designer htamaker interface introduction and usage, Download | HTA VBS visual script writing

Unity3d ugui force refresh of layout components

Mysql表数据比较大情况下怎么修改添加字段

如何在 JupyterLab 中把 ipykernel 切换到不同的 conda 虚拟环境?

微信小程序页面跳转以及参数传递

HTA introductory basic tutorial | GUI interface of vbs script HTA concise tutorial, with complete course and interface beautification

2. 成功解决 BUG:Exception when publishing, ...[Failed to connect and initialize SSH connection...
随机推荐
Xunwei enzhipu ITop - imx6 Development Platform
Cmake tutorial series -02- generating binaries using cmake code
HTA introductory basic tutorial | GUI interface of vbs script HTA concise tutorial, with complete course and interface beautification
Unity timeline data binding
FDA mail security solution
O & M (20) make and start USB flash disk and install win10
模板参数包和函数参数包
Visual HTA form designer htamaker interface introduction and usage, Download | HTA VBS visual script writing
Use compose to realize the effect of selecting movie seats by panning tickets
uniapp 地址转换经纬度
Global and Chinese market of mobile commerce solutions 2022-2028: Research Report on technology, participants, trends, market size and share
Unity3d ugui force refresh of layout components
Linear algebra Chapter 4 Summary of knowledge points of linear equations (Jeff's self perception)
FAQs for code signature and driver signature
What is the concept of string in PHP
最小栈详解
Network neuroscience -- a review of network Neuroscience
Azure 开发者新闻快讯丨开发者6月大事记一览
Global and Chinese market of relay lens 2022-2028: Research Report on technology, participants, trends, market size and share
Unity TimeLine 数据绑定

