"06" IDEA2019.3 (most all - from entry to the madness

Had wanted to object-oriented end up doing an article on the code editor, but since your computer is also something wrong, so just take advantage of the time to install the idea of good and sort out these things
here, the main reason for the eclipse is not recommended yes, this really is not easy to
Here Insert Picture Description
download and install omitted

Directory Structure

Here Insert Picture Description
bin: container, executable files and startup parameters
help: Shortcuts documents and other help documents
jre64: 64 Wei java runtime environment
lib: idea dependent libraries
license: licensing of each plug-in
plugin: plugins
in the bin directory: where
Here Insert Picture Description

Adjust VM configuration file

Here Insert Picture Description
-Xms128m, 16 G memory machines may try to -Xms512m
(set the initial number of memory, this value can be increased to increase the speed of Java programs start.)
-Xmx750m, G memory 16 may be attempted to set the machine -Xmx1500m
(set maximum number of memory, increase this value, the frequency of collection Garage memory can be reduced to improve program performance)
-XX: ReservedCodeCacheSize = 240M, 16G memory machines to try
-XX: ReservedCodeCacheSize = 500m
(code occupies a reserved memory)
sets the directory
Here Insert Picture Description
this is the IDEA directory to save various configurations. This directory has a feature set, is that you delete the entire directory
, restart IntelliJ IDEA will then automatically help you generate a new default configuration, so a lot of time if you put
IntelliJ IDEA configuration change is broken, it does not matter, delete the directory, everything will revert to the default.

  1. config目录
    config 目录是 IntelliJ IDEA 个性化化配置目录,或者说是整个 IDE 设置目录。此目录可看成是最重要的目录,没有之一,安装新版本的 IntelliJ IDEA 会自动扫描硬盘上的旧配置目录,指的就是该目录。这个目录主要记录了:IDE 主要配置功能、自定义的代码模板、自定义的文件模板、自定义的快捷键、 Project 的 tasks 记录等等个性化的设置。
  2. system 目录
    system 目录是 IntelliJ IDEA 系统文件目录,是 IntelliJ IDEA 与开发项目一个桥梁目录, 里面主要有:缓存、索引、容器文件输出等等,虽然不是最重要目录,但也是最不可或缺的目录之一。

激活 关注公众号:你好我是java程序员回复[激活]获取教程和相关内容

创建Java工程
Here Insert Picture Description
Create New Project:创建一个新的工程。
Import Project:导入一个现有的工程。
Open:打开一个已有工程。
Check out from Version Control:可以通过服务器上的项目地址 check out Github
上面项目或其他 Git 托管服务器上的项目。

工程界面

Here Insert Picture Description
在 IDEA 里要说的是,写完代码,不用点击保存。IDEA 会自动保存代码。

创建模块(Module)

在 Eclipse 中我们有 Workspace(工作空间)和 Project(工程)的概念,在 IDEA 中只有 Project(工程)和 Module(模块)的概念。这里的对应关系为:
Eclipse 中 workspace 相当于 IDEA 中的 Project;Eclipse 中 Project 相当于 IDEA 中的 Module。
Here Insert Picture Description
Here Insert Picture Description
IntelliJ IDEA 是无法在同一个窗口管理 n 个项目。IntelliJ IDEA 提供的解决方案是打开多个项目实例,即打开多个项目窗口。即:一个 Project 打开一个 Window 窗口。
在 IntelliJ IDEA 中 Project 是最顶级的级别,次级别是 Module。一个 Project 可以有多个 Module。目前主流的大型项目都是分布式部署的, 结构都是类似这种多 Module 结构。之后,我们可以在 Module 的 src 里写代码,此时 Project 工程下的 src 就没什么用了,可以删掉。

删除模块(Module)

Here Insert Picture Description

查看项目配置

Here Insert Picture Description

常用配置

Here Insert Picture Description
Appearance & Behavior(外观和行为)
设置窗体及菜单的字体及字体大小 (可忽略)
Here Insert Picture Description

设置鼠标悬浮提示

Here Insert Picture Description

设置自动导包功能

Add unambiguous imports on the fly:自动导入不明确的结构;
Optimize imports on the fly:自动帮我们优化导入的包
Here Insert Picture Description

设置显示行号和方法间的分隔符

Here Insert Picture Description

忽略大小写提示

取消勾选,match case
Here Insert Picture Description

设置取消单行tabs的操作

在打开很多文件的时候, IntelliJ IDEA默认是把所有打开的文件名Tab页单行显示的。
Here Insert Picture Description
Editor --> Font

设置默认的字体、字体大小、字体行间距

Here Insert Picture Description
Editor –-> Color Scheme
修改代码中注释的字体颜色
Doc Comment – Text:修改文档注释的字体颜色;Block comment:修改多行注释的字体颜色;Line comment:修改单行注释的字体颜色。
Editor --> Code Style
Editor –-> File and Code Templates
Editor --> Inspections

快捷键生成serialVersionUI

Here Insert Picture Description
鼠标点击类,按alt+entry
Here Insert Picture Description
Editor –-> File Encodings
设置项目文件编码
Transparent native-to-ascii conversion 主要用于转换 ascii,一般都要勾选,不然 Properties 文件中的注释显示的都不会是中文。
Here Insert Picture Description
Build,Execution,Deployment

设置自动编译

Here Insert Picture Description

安装插件

RainBow Brackets(彩虹括号)
Here Insert Picture Description
Maven Helper
ignore
生成各种ignore文件,一键创建git ignore文件的模板。
lombok
通过该插件可以生成实体的GetXXX和SetXXX方法。lombok的注解(@Setter,@Getter,@ToString,@@RequiredArgsConstructor,@EqualsAndHashCode或@Data),需要在项目中添加依赖。
FindBugs-IDEA
检测代码中可能的bug及不规范的位置。
GsonFormat
根据json文本生成java类。
VisualVM Launcher
运行java程序的时候启动visualvm,方便查看jvm的情况。
GenerateAllSetter
一键调用一个对象的所有set方法并且赋予默认值。
Grep console
自定义日志颜色,idea控制台可以彩色显示各种级别的log,安装完成后,在console中右键就能打开。
Free Mybatis plugin
mybatis 插件,让你的mybatis.xml像java代码一样编辑。
MyBatis Log Plugin
直接将Mybatis执行的sql脚本显示出来,可以直接运行。
Restfultookit
可以根据web访问的url找到对应的controller类,还可以生成测试数据,不用postman来组装数据。

Create dynamic Java Web

Here Insert Picture Description

Breakpoint debugging

Shared memory is a Windows-specific attribute is generally recommended to use this setting in the Windows system, a relatively small memory footprint.
Here Insert Picture Description

Configuring Maven

Import Maven projects automatically: pom.xml file IntelliJ IDEA will represent real-time monitoring of the project, change the project settings.

Here Insert Picture Description

Published 11 original articles · won praise 0 · Views 90

Guess you like

Origin blog.csdn.net/SIayer/article/details/103996703
Recommended