IDEA download and related settings

1. IDEA

It's charged, but very easy to use.

A subsidiary of JetBrains.

1.1 Download and installation

官网下载地址:
https://www.jetbrains.com/idea/download/#section=windows

注意:
	Community为社区版本,免费但是功能较少(完全免费)
	Ultimate为终极版本,收费但是功能强大(30天试用)

1.2 Project layout

Insert picture description here

1.3 Create a project and module

1. 在IDEA初试界面点击 Create New Project
2. 选择Empty Project创建空项目
3. 在自动弹出来的Project Settings中对Project进行设置,设置之后点击apply应用一下(注意:先别点击OK)
		1. 进行SDK选择(一般选择jdk8或者jdk11)
		2. 进行编译版本选择(和jdk版本保持一致即可)
4. 在Project Settings中的Modules中点击 + 号 创建一个模块
		1. 点击 + 号之后会有一个add标题栏,然后点击 New Module
		2. 在弹出的New Module窗口中新建一个Java Module即可
	
注意:
	一个项目中是可以放多个模块Module的

在一个项目中添加多个Module的方式为:
1. 点击File,选择 Project Structure
2. 在弹出的Project Structure中的Modules中新建一个Module即可(方式同上)

Insert picture description here

Insert picture description here

Insert picture description here

Insert picture description here
Insert picture description here

Insert picture description here

Insert picture description here

1.4 Simple configuration

① Font size

方式一:一次性调节
			对File-Settings-Editor-Font中的Size进行字体大小设置
方式二:通过ctrl+鼠标滚轮调节
			在File-Settings-Editor中点击General,然后在右侧的Mouse中选择Change font size(Zoom)with Ctrl + Mouse Wheel

Insert picture description here

② Subject

Insert picture description here

1.5 Shortcut keys

1. main方法
		在编辑界面写上 main或者 psvm
2. 输出语句
		在编辑界面写上 sout
3. 单行注释
		Ctrl + /
4. 多行注释
		Ctrl + Shift + /
5. 删除选中的行
		Ctrl + Y
6. 赋值选中的行
		Ctrl + D
7. 代码格式化
		Ctrl + Alt + L

Guess you like

Origin blog.csdn.net/ChangeNone/article/details/112260633