当前位置:网站首页>浅谈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 取消更新

边栏推荐
- C console format code
- shell统计某个字符串最后一次出现的位置之前的所有字符串
- [dry goods sharing] the latest WHQL logo certification application process
- Some configuration details about servlet initial development
- Interrupt operation: abortcontroller learning notes
- Time complexity analysis
- Global and Chinese market of wind energy equipment logistics 2022-2028: Research Report on technology, participants, trends, market size and share
- Implementation of Sanzi chess with C language
- Global and Chinese market of subscription revenue management software 2022-2028: Research Report on technology, participants, trends, market size and share
- What files does a CA digital certificate contain? How to view SSL certificate information?
猜你喜欢

Use compose to realize the effect of selecting movie seats by panning tickets

FDA mail security solution

prompt learning 一个空格引发的血案

Intel hex, Motorola S-Record format detailed analysis

重磅来袭--UE5的开源数字孪生解决方案

Linear algebra Chapter 3 summary of vector and vector space knowledge points (Jeff's self perception)

2.8 【 weight of complete binary tree 】

FDA ESG regulation: digital certificate must be used to ensure communication security

Some configuration details about servlet initial development

Call collections Sort() method, compare two person objects (by age ratio first, and by name ratio for the same age), and pass lambda expression as a parameter.
随机推荐
Three solutions to forced hibernation of corporate computers
公司电脑强制休眠的3种解决方案
Redis+AOP怎么自定义注解实现限流
PHP two-dimensional array randomly fetches a random or fixed number of one-dimensional arrays
Welfare lottery | what are the highlights of open source enterprise monitoring zabbix6.0
Uniapp address translation latitude and longitude
GTK interface programming (II): key components
Ffmpeg source code
HTA introductory basic tutorial | GUI interface of vbs script HTA concise tutorial, with complete course and interface beautification
Unity3d ugui force refresh of layout components
What should academic presentation /ppt do?
Lua Basics
自定义JvxeTable的按钮及备注下$set的用法
002 color classification
Study diary: February 15, 2022
【直播笔记0629】 并发编程二:锁
Global and Chinese market for defense network security 2022-2028: Research Report on technology, participants, trends, market size and share
Mysql提取表字段中的字符串
发现mariadb数据库时间晚了12个小时
[untitled]

