[{"createTime":1735734952000,"id":1,"img":"hwy_ms_500_252.jpeg","link":"https://activity.huaweicloud.com/cps.html?fromacct=261f35b6-af54-4511-a2ca-910fa15905d1&utm_source=V1g3MDY4NTY=&utm_medium=cps&utm_campaign=201905","name":"华为云秒杀","status":9,"txt":"华为云38元秒杀","type":1,"updateTime":1735747411000,"userId":3},{"createTime":1736173885000,"id":2,"img":"txy_480_300.png","link":"https://cloud.tencent.com/act/cps/redirect?redirect=1077&cps_key=edb15096bfff75effaaa8c8bb66138bd&from=console","name":"腾讯云秒杀","status":9,"txt":"腾讯云限量秒杀","type":1,"updateTime":1736173885000,"userId":3},{"createTime":1736177492000,"id":3,"img":"aly_251_140.png","link":"https://www.aliyun.com/minisite/goods?userCode=pwp8kmv3","memo":"","name":"阿里云","status":9,"txt":"阿里云2折起","type":1,"updateTime":1736177492000,"userId":3},{"createTime":1735660800000,"id":4,"img":"vultr_560_300.png","link":"https://www.vultr.com/?ref=9603742-8H","name":"Vultr","status":9,"txt":"Vultr送$100","type":1,"updateTime":1735660800000,"userId":3},{"createTime":1735660800000,"id":5,"img":"jdy_663_320.jpg","link":"https://3.cn/2ay1-e5t","name":"京东云","status":9,"txt":"京东云特惠专区","type":1,"updateTime":1735660800000,"userId":3},{"createTime":1735660800000,"id":6,"img":"new_ads.png","link":"https://www.iodraw.com/ads","name":"发布广告","status":9,"txt":"发布广告","type":1,"updateTime":1735660800000,"userId":3},{"createTime":1735660800000,"id":7,"img":"yun_910_50.png","link":"https://activity.huaweicloud.com/discount_area_v5/index.html?fromacct=261f35b6-af54-4511-a2ca-910fa15905d1&utm_source=aXhpYW95YW5nOA===&utm_medium=cps&utm_campaign=201905","name":"底部","status":9,"txt":"高性能云服务器2折起","type":2,"updateTime":1735660800000,"userId":3}]
<>一、IDEA默认快捷键(持续更新)
1、自己常用快捷键:(部分有更改)
说明快捷键
删除当前行ctrl + d
复制当前行到下一行ctrl + ↓
补全代码alt + /
添加注释或取消ctrl + /
自动导包(需要先设置)alt + Enter
自动调整代码格式ctrl + shift + L
运行代码ctrl + R
构造器生成、get、set方法、 toString 、在pom.xml文件中快捷配置依赖alt + insert
查看类的层级关系(光标放在该类上)ctrl + H
定位到方法(光标放在方法上)ctrl + B
自动的分配变量名.var
撤回上一步操作shift + Backspace / ctrl + Z
取消撤回ctrl +shift + Z
异常处理alt + ctrl + t
快速生成whilei t i t
大小写转换ctrl + shift + u
加入@Test注解解决飘红Alt + Enter
包的重命名shift + F6
多行输入alt + 鼠标左键
查看所有的快捷键ctrl + j
增强for循环循环的对象 + .i
<>二、快捷键的设置
前言:对于快捷键,我认为最核心的还是要懂得自己如何去设置,而不是强记。下面有两种设置(搜索)快捷键的方法
一、通过操作名来搜索并找到快捷键然后进行更改
1、单击文件,然后点Settings
2、点击Keymap进入Editor Actions
3、选择自己要设置的快捷键,先Remove(移除)原来的快捷键,再Add自己想设置的快捷键,直接一次性输入即可,假如是Ctrl + d
,那么就同时按下这两个键即可。
移除之后就没了,再自己重新设置
其它快捷键可以自己搜索
二、也可以根据操作键位来看这个快捷键是什么功能
先点击搜索框,然后在搜索框内直接按下你想要的快捷键组合。比如:shift +
Backspace,这时按下回车键即可看到它的操作是撤回上一步的操作。但是它这个操作还有其它的快捷键,意思就是也可以按另外的快捷键来实现。