IDEA的详细设置

《IDEA破解、配置、使用技巧与实战教程》系列文章目录

第一章 IDEA破解与HelloWorld的实战编写
第二章 IDEA的详细设置
第三章 IDEA的工程与模块管理
第四章 IDEA的常见代码模板的使用
第五章 IDEA中常用的快捷键
第六章 IDEA的断点调试(Debug)
第七章 IDEA创建Java工程、Maven安装与建立工程、Web工程、Tomcat配置
第八章 IDEA关联数据库
第九章 IDEA常用插件_随时更新


文章目录


一、系统设置

1、默认启动项目配置

启动IDEA时,默认自动打开上次开发的项目?还是自己选择?

如果去掉Reopen last project on startup前面的对勾,每次启动IDEA就会出现如下界面:

2、取消自动更新

默认都打√了,建议检查IDE更新的√去掉,检查插件更新的√选上。

二、设置整体主题

1、选择主题

2、设置菜单和窗口字体和大小

三、显示行号与方法分隔符

四、代码智能提示功能

IntelliJ IDEA 的代码提示和补充功能有一个特性:区分大小写 。 如果想不区分大小写的话,就把这个对勾去掉。建议去掉勾选

五、 自动导包配置

默认需要自己手动导包,Alt+Enter快捷键

自动导包设置

  1. 动态导入明确的包:Add unambiguous imports on the fly,该设置具有全局性;
  2. 优化动态导入的包:Optimize imports on the fly,该设置只对当前项目有效;

六、设置项目文件编码(一定要改)

七、设置控制台的字符编码

八、修改类头的文档注释信息

比如:

bash 复制代码
/**
 * ClassName: ${NAME}
 * Package: ${PACKAGE_NAME}
 * Description: 
* @Author 尚硅谷-宋红康
* @Create ${DATE} ${TIME} 
* @Version 1.0   
*/

常用的预设的变量,这里直接贴出官网给的:

bash 复制代码
${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.

九、设置自动编译

相关推荐
yaoxin5211235 分钟前
212. Java 函数式编程风格 - Java 编程风格转换:命令式 vs 函数式(以循环为例)
java·开发语言
摇滚侠15 分钟前
Spring Boot 3零基础教程,WEB 开发 Thymeleaf 属性优先级 行内写法 变量选择 笔记42
java·spring boot·笔记
滑水滑成滑头16 分钟前
**发散创新:多智能体系统的探索与实践**随着人工智能技术的飞速发展,多智能体系统作为当今研究的热点领域,正受到越来越多关注
java·网络·人工智能·python
摇滚侠19 分钟前
Spring Boot 3零基础教程,WEB 开发 Thymeleaf 总结 热部署 常用配置 笔记44
java·spring boot·笔记
十年小站20 分钟前
一、新建一个SpringBoot3项目
java·spring boot
2401_8414956422 分钟前
【数据结构】最长的最短路径的求解
java·数据结构·c++·python·算法·最短路径·图搜索
麦麦鸡腿堡24 分钟前
Java的代码块介绍与快速入门
java·开发语言
梅小西爱学习36 分钟前
线上CPU飙到100%?别慌,这3个工具比top快10倍!
java·后端·cpu
没有bug.的程序员42 分钟前
金融支付分布式架构实战:从理论到生产级实现
java·分布式·微服务·金融·架构·分布式调度系统
00后程序员张42 分钟前
Jenkins Pipeline post指令详解
java·开发语言