当前位置:网站首页>Idea code refactoring tips (VIP collection version)
Idea code refactoring tips (VIP collection version)
2022-04-22 16:51:00 【Java Tony】
Catalog
4、 Function parameter position change and rename
3、 ... and 、 Extract method to parent class
One 、 Refactoring functions
1、 Extraction method
Extract the desired code , Press shortcut key Ctrl+Alt+M, A pop-up box will pop up , Write out the method name to extract a method
2、 Merging method
The inverse , After selecting the method , Put the method code directly into the main method
3、 Method rename
Ctrl+Shift+Alt+T, perhaps Shift+F6
![]()
4、 Function parameter position change and rename
Two 、 Refactoring variables
Ctrl+Alt+C Fast extraction of constants (Constant) Ctrl+Alt+V Quickly extract variables (Variable) Ctrl+Alt+F Quickly extract member variables (Filed Variable) Ctrl+Shift+f6 Refactor the type of the variable Click variables , Use the shortcut key directly
![]()
3、 ... and 、 Extract method to parent class
Please like it , Form good habits !
Please leave a message if you have any questions !
版权声明
本文为[Java Tony]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204221644125263.html
边栏推荐
- [Unity] 战斗系统学习 12:Switchable
- [Unity] 使用 Animation Rigging 制作瞄准 IK 1
- 【滤波与卷积(三)】
- Domestic mobile phone brands have found that they are nothing without the support of domestic consumers
- 解决并发问题方案流程及原理总结(表单重复提交问题)
- [Ansys Workbench] Mechanical 界面显示模型树窗口和详细信息窗口
- What are the functional problems of UI testing- Ze zhongyun test
- 小熊电器的三重压力:扩张、存货和对手
- Blue Bridge Cup practice 018
- CVPR2019领域自适应/语义分割:Adapting Structural Information across Domains for Boosting Sema适应结构信息跨领域促进语义分割
猜你喜欢
随机推荐
Merge two ordered linked lists (delete the same content)
CrashSight 常规功能&特色功能介绍
BACKBONE,NECK,HEAD
蕉下在走完美日记的老路
ifconfig、route、ip route、ip addr、 ip link 用法
[unity] make aim IK 1 with animation rig
五一劳动节哪个理财产品收益高?
UI测试有哪些功能问题?-泽众云测试
Experiment 4: KNN, naive Bayes of data mining
GlboalMapper20 如何一次性把上百个经纬度投影的影像转为国家2000或者其他投影的影像
蓝桥杯练习011
知乎香港上市,首家以双重主要上市回港的中概股
Update description of the latest process engine flowable 6.7.2
【ES6】扩展运算符、symbol、迭代器
详述 CHARTEVENTS 检查记录表(十)
SDN学习之Opendaylight浅析(二)
Detailed data of db107-asemi rectifier bridge
The [ANSYS Workbench] mechanical interface displays the model tree window and the details window
AQS source code reading
numpy基础大全(创建、索引、常用函数)















![[unity] make aim IK 1 with animation rig](/img/52/b8ee9d0982a8671356954fbbad775d.png)



