当前位置:网站首页>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替换
边栏推荐
- Pico neo3 Unity Packaging Settings
- Unity3D——自定义类的Inspector面板的修改
- Kotlin算法入门计算素数以及优化
- Machine Learning Summary (2)
- Four startup modes of Activity
- AUTOSAR从入门到精通番外篇(八)-C语言常用技巧50个
- 如何仅更改 QGroupBox 标题的字体?
- 【Day_13 0509】▲跳石板
- 借问变量何处存,牧童笑称用指针,Go lang1.18入门精炼教程,由白丁入鸿儒,go lang类型指针(Pointer)的使用EP05
- 小目标检测3_注意力机制_Self-Attention
猜你喜欢
随机推荐
1076 Wifi Password (15 points)
对比学习系列(三)-----SimCLR
2022 China Soft Drink Market Insights
一根网线两台电脑传输文件
klayout--导出版图为gds文件
tf.reduce_mean() and tf.reduce_sum()
1.2 - error sources
RestTemplate工具类
Kotlin算法入门计算素数以及优化
查询跟踪快递单号物流,智能分析物流中转有延误的单号
选择收银系统主要看哪些方面?
Getting Started with Kotlin Algorithms Calculating Prime Factors
leetcode:69. x 的平方根
C Primer Plus(6) 中文版 第1章 初识C语言 1.7 使用C语言的7个步骤
JUC并发编程
The easiest trick to support quick renaming of various files
1081 Check Password (15 points)
租房小程序
笔试题大疆08.07
excel 透视表 值显示内容 不显示计数






![[C语言] sscanf如何实现sscanf_s?](/img/aa/1060c8fd22b09bd6509f8bc41b316e.png)

