作者:手机用户2502856553 | 来源:互联网 | 2023-09-01 13:16
idea用法安装地址:https:www.jetbrains.com(下面是安装版,我个人喜欢绿色版即zip,无需安装直接使用)卸载然后选择Uninstall启动然后用激活码即可模
idea用法
安装
地址:https://www.jetbrains.com/
(下面是安装版,我个人喜欢绿色版即zip,无需安装直接使用)
![image-20201124202235735](https://img.php1.cn/3cd4a/1eebe/cd5/2fdc212433a29829.png)
![image-20201124202643314](https://img.php1.cn/3cd4a/1eebe/cd5/b386c433a16f5497.webp)
![](https://img.php1.cn/3cd4a/1eebe/cd5/72fd2c126203a875.webp)
卸载
![image-20201124202707558](https://img.php1.cn/3cd4a/1eebe/cd5/8ad8f3bf8da691df.webp)
然后选择Uninstall
启动
![image-20201124202748936](https://img.php1.cn/3cd4a/189d8/978/7dbdf0f38ad53545.jpeg)
然后用激活码即可
![image-20201124202815619](https://img.php1.cn/3cd4a/1eebe/cd5/60405fda58cd0acd.webp)
模块
在工程下新键一个模块
![image-20201124202845197](https://img.php1.cn/3cd4a/1eebe/cd5/ff61bfdd3c0af92e.webp)
删除一个模块
1、
![image-20201124202926003](https://img.php1.cn/3cd4a/1eebe/cd5/c72d78d7317a9e8e.webp)
![](https://img.php1.cn/3cd4a/1eebe/cd5/bcafc120671304eb.webp)
![image-20201124203109340](https://img.php1.cn/3cd4a/1eebe/cd5/a1be7872e8d4934f.webp)
**注意:**由于版本不同,有些版本会没有Delete…这个选项,需要我们自己去文件中手动删除模块
常用设置
主题
![image-20201124203327070](https://img.php1.cn/3cd4a/1eebe/cd5/eec57030b649a106.webp)
用下载的编辑区主题
![image-20201124203436516](https://img.php1.cn/3cd4a/1eebe/cd5/ea91d84a82557da5.webp)
- 19等新版本可以直接File->Setting->Import Settings导入jar包
- 皮肤主题的下载添加设置
皮肤下载地址:www.riaway.com
国外:http://color-themes.com/?view=index
Webstorm 等与 IDEA一样通用的皮肤,一个公司的软件
ctrl+鼠标调字大小
![image-20201124203618326](https://img.php1.cn/3cd4a/1eebe/cd5/e88efe5b0a13a7fa.webp)
自动导包
![image-20201124203658178](https://img.php1.cn/3cd4a/1eebe/cd5/60405fda58cd0acd.webp)
显行号/方法分割
![image-20201124203727734](https://img.php1.cn/3cd4a/189d8/b64/5b34b53b79a39fdd.jpeg)
鼠标悬浮提示
鼠标悬浮在某个类或者方法等会显示其作用
![image-20201124203807080](https://img.php1.cn/3cd4a/1eebe/cd5/a5d7215df572c386.webp)
取消单行显示标签
即编辑区上的多个类可叠加显示
![image-20201124204002810](https://img.php1.cn/3cd4a/1eebe/cd5/e88efe5b0a13a7fa.webp)
![image-20201124203834630](https://img.php1.cn/3cd4a/1eebe/cd5/2d903861d5ad779c.png)
字体设置
![image-20201124204038309](https://img.php1.cn/3cd4a/94ce/a6e/865776f6fe3d5f59.jpeg)
注释字体设置
![image-20201124204106885](https://img.php1.cn/3cd4a/1eebe/cd5/70be2ca197098d98.webp)
文档头部注释信息
![image-20201124204150436](https://img.php1.cn/3cd4a/1eebe/cd5/60405fda58cd0acd.webp)
设置编码
![image-20201124204215773](https://img.php1.cn/3cd4a/1eebe/cd5/8373b1277127c518.webp)
设置自动编译
![image-20201124204244785](https://img.php1.cn/3cd4a/1eebe/cd5/ea91d84a82557da5.webp)
快捷键
查看源码:
双击shift,查找想要查询的类
将光标点击在想要查找的类,然后ctrl+B查看该类的源码
ctrl+F12 查找类中的方法
1、Ctrl+j 插入自定义代码模板
1、打开设置— Editor — Live Templates
![image-20201124204342665](https://img.php1.cn/3cd4a/1eebe/cd5/8343fdbffb0056b5.webp)
![image-20201124204405614](https://img.php1.cn/3cd4a/189d8/b64/5b34b53b79a39fdd.jpeg)
补充:Define哪里选择java
2、Ctrl+R 对当前文件下的文本进行的替换
![image-20201124204433786](https://img.php1.cn/3cd4a/1eebe/cd5/d942b7ec373849c3.webp)
3、Shift + Enter
光标所在位置,向下另起一个新的空行,光标跟着下移
4、ctrl+Y 删除光标所在的行
5、ctrl+D 添加复制同样一行
6、ctrl+alt+L 格式化代码
7、ctrl+/ 单行注释
8、ctrl+shift+/ 多行注释
9、ctrl+ins 自动添加代码
10、ctrl+shift+向上/下 箭头 移动光标所在行的代码
11、Alt+回车 自动修复代码
12、Alt+/ 代码提示补全
13、代码段捕获异常:选择代码块 ctrl+alt+t
![image-20210125201858608](https://img.php1.cn/3cd4a/1eebe/cd5/67cc2e96eddffff8.png)
14、自动补全左侧语句:ctrl+alt+v
![55](https://img.php1.cn/3cd4a/1eebe/cd5/6789f68dabde0aed.png)
自动生成构造方法与get/set方法
快捷键 Alt+ins (注意:笔记本Fn键不要点亮)
![image-20201124204501262](https://img.php1.cn/3cd4a/1eebe/cd5/ddcc574beb16294e.jpeg)
![image-20201124204534627](https://img.php1.cn/3cd4a/1eebe/cd5/21e585a7e21fc7dc.png)
修改jdk版本
1、
![image-20201124204612186](https://img.php1.cn/3cd4a/1eebe/cd5/43a754c811e7ec5c.webp)
或者
![image-20201124204700836](https://img.php1.cn/3cd4a/1eebe/cd5/d942b7ec373849c3.webp)
然后在这里修改: