一、安装
1.1 IntelliJ IDEA 2018.3.2
- 私聊
1.2 目录结构
1.2.1 安装目录
- bin中
1.2.2 设置目录
二、配置
2.1 性能优化(64位8G以上可设置)
-Xms128m
16 G 内存的机器可尝试设置为-Xms512m
-Xmx750m
16 G 内存的机器可尝试设置为-Xmx1500m
-XX:ReservedCodeCacheSize=240m
16G 内存的机器可尝试设置为-XX:ReservedCodeCacheSize=500m
2.2 视图
2.3 Settings
2.3.1 设置鼠标滚轮修改字体大小
2.3.2 设置鼠标悬浮提示
2.3.3 设置自动导包功能
2.3.4 设置显示行号和方法间的分隔符
2.3.5 忽略大小写提示
2.3.6 设置取消单行显示 tabs 的操作
2.3.7 修改代码部分的字体
2.3.8 修改代码中注释的字体颜色
亲测最美的绿:629755
2.3.9 设置超过指定 import 个数,改为*
2.3.10 修改类头的文档注释信息
/**
@author lsssy
@create ${YEAR}-${MONTH}-${DAY} ${TIME}
*/
2.3.11 常用的预设的变量
${PACKAGE_NAME} - the name of the target package where the new class or interface will be created.
${PROJECT_NAME} - the name of the current project.
${FILE_NAME} - the name of the PHP file that will be created.
${NAME} - the name of the new file which you specify in the New File dialog box during the file creation.
${USER} - the login name of the current user.
${DATE} - the current system date.
${TIME} - the current system time.
${YEAR} - the current year.
${MONTH} - the current month.
${DAY} - the current day of the month.
${HOUR} - the current hour.
${MINUTE} - the current minute.
${PRODUCT_NAME} - the name of the IDE in which the file will be created.
${MONTH_NAME_SHORT} - the first 3 letters of the month name. Example: Jan, Feb, etc.
${MONTH_NAME_FULL} - full name of a month. Example: January, February, etc.
2.3.12 设置项目文件编码
2.3.13 设置自动编译
三、使用技巧
3.1 Project与Module
- 在 Module 的 src 里写代码,此时 Project 工程下的 src 就没什么用了。可以删掉。
- 删除Module先从MoudleSetting中删除,接着才能删除文件,相当于一个保护机制