IntelliJ IDEA安装、配置与使用


一、安装


1.1 IntelliJ IDEA 2018.3.2

  • 私聊

1.2 目录结构


1.2.1 安装目录

在这里插入图片描述

  • bin中
    在这里插入图片描述

1.2.2 设置目录

在这里插入图片描述


二、配置

2.1 性能优化(64位8G以上可设置)

在这里插入图片描述

  • -Xms128m16 G 内存的机器可尝试设置为-Xms512m
  • -Xmx750m16 G 内存的机器可尝试设置为 -Xmx1500m
  • -XX:ReservedCodeCacheSize=240m16G 内存的机器可尝试设置为-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中删除,接着才能删除文件,相当于一个保护机制

3.2 查看项目配置

在这里插入图片描述在这里插入图片描述


3.3 设置代码水平或垂直显示

在这里插入图片描述

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值