大家好,欢迎来到IT知识分享网。
《IDEA激活成功教程、配置、使用技巧与实战教程》系列文章目录
文章目录
一、系统设置
1、默认启动项目配置
启动IDEA时,默认自动打开上次开发的项目?还是自己选择?
如果去掉Reopen last project on startup前面的对勾,每次启动IDEA就会出现如下界面:
2、取消自动更新
默认都打√了,建议检查IDE更新的√去掉,检查插件更新的√选上。
二、设置整体主题
1、选择主题
2、设置菜单和窗口字体和大小
三、显示行号与方法分隔符
四、代码智能提示功能
IntelliJ IDEA 的代码提示和补充功能有一个特性:区分大小写。 如果想不区分大小写的话,就把这个对勾去掉。建议去掉勾选。
五、 自动导包配置
- 动态导入明确的包:Add unambiguous imports on the fly,该设置具有全局性;
- 优化动态导入的包:Optimize imports on the fly,该设置只对当前项目有效;
六、设置项目文件编码(一定要改)
七、设置控制台的字符编码
八、修改类头的文档注释信息
比如:
/ * ClassName: ${NAME} * Package: ${PACKAGE_NAME} * Description: * @Author 尚硅谷-宋红康 * @Create ${DATE} ${TIME} * @Version 1.0 */
常用的预设的变量,这里直接贴出官网给的:
${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.
九、设置自动编译
免责声明:本站所有文章内容,图片,视频等均是来源于用户投稿和互联网及文摘转载整编而成,不代表本站观点,不承担相关法律责任。其著作权各归其原作者或其出版社所有。如发现本站有涉嫌抄袭侵权/违法违规的内容,侵犯到您的权益,请在线联系站长,一经查实,本站将立刻删除。 本文来自网络,若有侵权,请联系删除,如若转载,请注明出处:https://haidsoft.com/112681.html











