当前位置:网站首页>细说Idea那些骚操作
细说Idea那些骚操作
2022-06-23 06:23:00 【坏蛋呆呆】
界面设置篇
- Ctrl + F4 :关闭当前tab页
- Alt + 1: 把鼠标焦点定位到project视图里
- Ctrl + Shift +←或→:左右移动project视图和代码区的分割线,前提是鼠标焦点定位在project视图内;
- Alt +F1 弹出select in视图,然后选择Project view中的project,回车,定位类在project的位置
- Alt +V ,去掉Navigationbar :去掉导航栏
- Alt + Home:显示导航
- Ctrl + Tab :弹出可切换的视图,可选择要切换的视图。
便捷开发篇
一、搜索
- Ctrl + N :按类名进行搜索
- Ctrl + F: 当前文件内搜索
- Ctrl + Shift + F: 全局搜索
- Ctrl + Shift + Alt + N:模糊搜索方法名
- Ctrl + Shift + N :模糊搜索目录
- Ctrl + E :打开 曾打开过的文件的记录;
- Ctrl + Shift + E : 6的增强版
二、代码生成
- Ctrl + O :选择重写父类方法;
- Ctrl + Shift + Enter:收尾操作,自动补全大括号和分号等;
- Alt + Insert : 自动生成get/set和构造方法;
三、代码自动补全
- var声明:如输入“aaa”.var 自动补全为 string a =“aaa”;
- for/fori遍历:如list.for/fori 自动补全为for(Obejct o:list){...} 或for(int i=0;i<list.size();i++){...};
- null或notnull判断:person.null/notnull 自动补全为if(person == null){...}或if(person != null){...};
- nn判非空:如person.nn 自动补全为 if(person !=null);
- if条件判断:xx>0.if 自动补全为:if(xx > 0){...};
- cast强转: Object a=“aa”,输入a.cast自动补全为(String)a;
- return 返回值:“aa”.return 自动补全为return "aa";
- sout:生成System.out.println()
- psvm:生成main方法;
- sout:生成System.out.println()
四、其他
- Ctrl + Shift + 方向键↑和↓ :向上或向下移动代码
- Ctrl + Alt + B(或鼠标左键):进入该接口方法的实现方法;
- Ctrl + Alt + U:显示该类的继承关系图
- Ctrl + Alt + 方向键←和→ :前进或后退
- Ctrl + G :跳转到某行
- Ctrl + Shift + U :大小写转换
运行调试篇
- Ctrl + F10:热部署tomcat项目;
- F7:单步调试,进入方法内部;
- F8:单步调试,不进入方法内部;
- F9 继续执行,进入下一个断点或执行完程序
- Shift+F7:选择要进入的方法;
- Shift+F8:跳出方法;
- Alt+F8:执行表达式查看结果;
- Alt+F9:运行到断点;
- Ctrl+F8 设置/取消当前行断点;
- Ctrl+Shift+F8 查看断点;
Idea配置篇
- Idea 控制台彩色输出设置
- Idea配置Terminal为Git命令终端:
Seting→Terminal:配置Shell path为git...ext
边栏推荐
- WPF command directive and inotifypropertychanged
- 301. 删除无效的括号
- MySQL MVCC多版本并发控制
- C language operator priority formula
- 宝塔忘记密码
- deeplab v3 代码结构图
- Lombok的使用
- [STL] summary of stack and queue usage of container adapter
- C DPI adaptation problem
- Intentional shared lock, intentional exclusive lock and deadlock of MySQL
猜你喜欢

Endnote20 tutorial sharing (unfinished

How to migrate virtual machines from VirtualBox to hype-v

js 判断两个数组增加和减少的元素

云原生落地进入深水区,博云容器云产品族释放四大价值

Intentional shared lock, intentional exclusive lock and deadlock of MySQL

Configuration and compilation of mingw-w64, msys and ffmpeg

406 double pointer (27. remove elements, 977. square of ordered array, 15. sum of three numbers, 18. sum of four numbers)

Badly placed()'s problem

【日常训练】513. 找树左下角的值

深度学习系列46:人脸图像超分GFP-GAN
随机推荐
Vs2013 ffmpeg environment configuration and common error handling
【项目实训】线形组件的细节
897. 递增顺序搜索树
[project training] multi segment line expanded to parallel line
Idea automatically generates serialVersionUID
The illustration shows three handshakes and four waves. Xiaobai can understand them
QT designer cannot modify the window size, and cannot change the size by dragging the window with the mouse
Chrome remove duplicate bookmarks
What you need to know about five insurances and one fund
WPF command directive and inotifypropertychanged
Xiaobai must see in investment and wealth management: illustrated fund buying and selling rules
A small method of debugging equipment serial port information with ADB
Why can't the index of JS array use negative numbers
Why does TCP protocol shake hands three times instead of two?
How to achieve efficient network information dissemination
Traversal of binary tree and related knowledge
MySQL的意向共享锁、意向排它锁和死锁
[project training 10] drawing of arrows
897. incremental sequential search tree
云原生落地进入深水区,博云容器云产品族释放四大价值