当前位置:网站首页>Initial use of IDEA
Initial use of IDEA
2022-08-11 08:13:00 【Xiao Chen loves candy①】
目录
一、IDEA与eclipse的区别
与eclipse最大的区别在于:eclipseIn an interval can create a lot of project,ideaA workspace can only create a project,但是ideaA project can create a lot of is the project of(模块)
使用
1.1新建一个子项目
If it is to build project selectionfile->new ->project
Existing computer location
可见成功了
1.2 认识目录
目录介绍
binDirectory is some related implementation and configuration package
helpDirectory to help document manual;
jre64目录是jre运行支持;
libDirectory is used runjar包;
liceneseDirectory is a license agreement;
pluginsDirectory is a plug-in
redistDirectory is some miscellaneous;
重要文件夹
config是你对idea的配置的文件 The file save good,If other computer installationidea,Startup can choose to import your thisconfig
This province repeat configuration;
systemDirectory is some system cache file,日志文件,临时文件,索引文件,Including local historical documents, and so on,假如ideaRunning crowd problems,
请把system文件删除,In most cases will solve the problem;
1.3 个性化设置
设置字体大小
设置工具栏
设置背景 点击扳手
点击OK
设置鼠标悬浮提示
显示方法分隔符
忽略大小写提示
自动导包
默认情况,包括Eclipse 写完类,是需要手工导入包的,不过IDEA提供了自动导包设置
Editor->general->Auto Import
下拉选All 然后下面两个勾选下即可;随后可以自动导入包,取消包.
取消单行显示Tabs
可以配置下:
Editor->General ->Editor Tabs
配置类文档注释信息模版
To change the habit toeclipse的
设置文件编码
设置自动编译
Eclipse里,项目都是自动编译的,IDEA里默认不是,我们需要配置下;
Build,Execution,Deployment -> Compiler 两个勾选下,设置项目自动编译,包括平行结构的多个模块也自动编译;
jspFile after the change 会自动编译
水平或者垂直显示代码
选中类 右键
Under the vertical cutting is horizontal cut
设置默认浏览器
二、 IDEA快捷键介绍
alt+shift+s 以及 alt+inster 实现自动生成get set 以及构造方法
ctrl+d 删除一行
ctrl+shift+o 导入包
ctrl+shift+f 代码格式化
ctrl+shift+y 转换大小写
ctrl+f 查找(当前文件)
ctrl+h 全局查找
双击shift 查找文件
tab 以及 shift+tab 整体代码向后 向前移动
alt+/ 提示操作(自定义修改)
alt+/这个快捷方式被其他地方占用了,所以先去掉;
根据快捷方式搜索
然后我们给这个随便添加一个新的快捷方式,再删除掉alt+/
然后我们搜索basic,找到自动提示快捷方式
添加Alt+/
alt+shift+r 重命名参数和方法
向下复制一行 ctrl+alt+向下键
ctrl+/ 单行注释
ctrl+shift+/ 多行注释
alt+上下键 选中单行或者多行 向上或者向下移动
ctrl+shift+t 查看源码 (当前java文件有的类,直接ctrl+点进去即可)
alt+enter 生成返回值/纠错 eclipse是ctrl+1
alt+左右方向键 跳转上一个或者下一个编辑页面
ctrl+- 或者 ctrl+= 收缩或者展开单个方法
ctrl+shift+- 或者 ctrl+shift+= 收缩全部或者展开全部方法 自定义配置
ctrl+shift+h 查看方法重写结构
ctrl+alt+h 查看方法调用者
F4 选中类 查看类继承关系
ctrl+o 查看类结构
ctrl+Alt+shift+u 查看类结构关系图
三、maven项目创建
注意:In the development tools,新建mavenIn the network project need,并且重新配置maven
3.1 搭建maven的环境
第4Step file selected
3.2 创建maven项目
注意:删除Java项目 The selected component(模块)delete 重复两次 ;Can't go to the local store the location of the delete
可见 初步建成
理由:Later didn't write a configuration file Automatically download some useless configuration
将pom.xml重新配置一下 dependcy替换
边栏推荐
- My creative anniversary丨Thank you for being with you for these 365 days, not forgetting the original intention, and each is wonderful
- 第一次因没有找到iframe元素而怀疑selenium4是不是有bug?
- go-grpc TSL authentication solution transport: authentication handshake failed: x509 certificate relies on ... ...
- JRS303-Data Verification
- Linux,Redis中IOException: 远程主机强迫关闭了一个现有的连接。解决方法
- C语言-结构体
- 对比学习系列(三)-----SimCLR
- Kotlin算法入门计算质因数
- 2022-08-10 mysql/stonedb-慢SQL-Q16-耗时追踪
- Evolution and New Choice of Streaming Structured Data Computing Language
猜你喜欢
The most complete documentation on Excel's implementation of grouped summation
C语言操作符详解
囍楽cloud task source code
Features of LoRa Chips
C Primer Plus(6) 中文版 第1章 初识C语言 1.7 使用C语言的7个步骤
分布式锁-Redission - 缓存一致性解决
初级软件测试工程师笔试试题,你知道答案吗?
TF generates (feature, label) set through feature and label, tf.data.Dataset.from_tensor_slices
The softmax function is used in TF;
一根网线两台电脑传输文件
随机推荐
Two state forms of Service
【云原生】云原生在网络安全领域的应用
快速幂,逆元的求解
Redis 只会用缓存?20种妙用让同事直呼牛X(荣耀典藏版)
Write a resume like this, easy to get the interviewer
string类接口介绍及应用
第一次因没有找到iframe元素而怀疑selenium4是不是有bug?
关于架构的认知
The softmax function is used in TF;
Machine Learning Summary (2)
2022年值得关注的NFT发展趋势
FPGA 20个例程篇:11.USB2.0接收并回复CRC16位校验
链式编程注解
2022 China Soft Drink Market Insights
抽象类和接口
jenkins简单使用
Pico neo3 Unity Packaging Settings
机器学习(二)线性回归
【TA-霜狼_may-《百人计划》】图形3.7.2 command buffer简
笔试题大疆08.07