当前位置:网站首页>开发必备之Idea使用
开发必备之Idea使用
2022-07-23 05:37:00 【九离⠂】
开发必备之Idea使用
文章目录
1、使用快捷键
| 作用说明 | 快捷键 |
|---|---|
| 快速生成main方法 | psvm(打出) +Tab或 main(打出)+Tab |
| 快速生成System.out.prinltn() | sout(打出)+Tab |
| 删除一行 | Ctrl+Y |
| 切换java文件 | Alt+右箭头 或 Alt+左箭头 |
| 复制选中行到下一行 | Ctrl+D |
| 撤销上一步操作 | Ctrl+Z |
| 取消撤销 | Ctrl+Shift+Z |
| 将选中的行合并成一行 | Ctrl+shift+J |
| 查找类文件 | Ctrl+N |
| 显示文件结构 | Ctrl+F12 |
| 显示当前文件夹路径 | Ctrl+Alt+F12 |
| 显示当前类的继承层次 | Ctrl+H |
| 定位至下一个错误 | F2 |
| 定位到前一个错误 | Shift+F2 |
| 展开代码 | Ctrl+= |
| 折叠代码 | Ctrl± |
| 选中的行多行注释 | Ctrl+Shift+/ |
| 定位到文件的某一行 | Ctrl+G |
| 选中的行注释或取消注释 | Ctrl+/ |
| 运行当前文件 | Ctrl+Shift+F10 |
| 提示方法的参数 | Ctrl+P |
| 跳到文件尾 | Ctrl+End |
| 跳到文件头 | Ctrl+Home |
| 选中的行代码格式化 | Ctrl+Alt+L |
| 在当前文件进行文本查找 | Ctrl+R |
| 选中的行打断点或取消断点 | Ctrl+F8 |
2、idea中进行自定义快捷键
2.1 点击File --> Setting --> KeyMap


3、插件的安装

4、设置背景
安装插件:Backgroud Image Plus +
设置壁纸:File->Settings->Appearance->BackgoundImage

有对象的自设,没对象自己new一个

5、翻译
安装插件:Translation


6、滚屏小地图
安装插件:Code Glance
阅读很长的代码,滚轮都滚冒烟了。

7、代码补全
安装插件:Codota AI
IDEA自带的补全代码已经很强大,AI补全代码更加强大,越用越好用。

8、防沉迷
安装插件:StopCoding
如果你经常沉迷于写代码,那么试试这个插件,设置工作时间和休息时间,别忘了起来喝杯水,走动几步,爱护身体,从你我做起。

9、快速生成文档注释
安装插件:JavaDoc
Windows上可以通过Alt+Insert,Mac可通过Ctrl+Enter。

10、扫描代码问题
安装插件:SonarLint
帮助你检查代码的问题,例如性能,安全、重复等问题。新手必备。

边栏推荐
- 资源池以及资源池化是什么意思?
- H1 -- HDMI interface test application 2022-07-15
- “我最想要的六种编程语言!”
- 【社媒营销】出海新思路:Whatsapp Business替代Facebook
- 讲师征集令 | Apache DolphinScheduler Meetup分享嘉宾,期待你的议题和声音!
- "The six programming languages I want most!"
- 一次 MySQL 误操作导致的事故,「高可用」都不好使了
- MySQL log understanding
- TS类型体操 之 中级类型体操挑战收官之战
- 【信息系统项目管理师】第六章 复盘进度管理知识架构
猜你喜欢

Pytorch (V) -- pytorch advanced training skills

Basic knowledge of C language (I)

FPGA - SPI bus control flash (2) (including code)

9、光线追踪

6. Barycentric coordinate interpolation and graphics rendering pipeline
![[unity daily bug] unity reports an unexpected character '‘](/img/e8/11eec670112a5a7e4f1e71dc93c1c0.png)
[unity daily bug] unity reports an unexpected character '‘

Redis源码与设计剖析 -- 9.字符串对象

Recommend a shell installation force artifact, which has been open source! Netizen: really fragrant...

海德堡CP2000电路板维修印刷机主机控制器操作及保养注意事项

Redis source code and design analysis -- 10. List object
随机推荐
C ivalueconverter interface usage example
7. Texture mapping
Understand asp Net core - Cookie based authentication
Recommend a shell installation force artifact, which has been open source! Netizen: really fragrant...
【ROS进阶篇】第八讲 URDF文件的语法详解
Script of Nacos current limiting query
海德堡CP2000电路板维修印刷机主机控制器操作及保养注意事项
Huawei executives talk about the 35 year old crisis. How can programmers overcome the worry of age?
数据库进程卡住解决
Kubernetes technology and Architecture (VI)
PXE remote installation and kickstart unattended installation technical documents
Murata power maintenance switch server power maintenance and main functional features
Analyse du code source et de la conception de redis - - 7. Liste rapide
Niuke brush questions - Sword finger offer (phase II)
Redis源码与设计剖析 -- 8.对象系统
对比redis的RDB、AOF模式的优缺点
Anaconda虚拟环境下安装opencv报错的问题
Briefly describe the features and application scenarios of redis
Redis source code and design analysis -- 9. String object
3DMAX first skin brush weights, then attach merge