一 Settings设置

1 全局设置页面:

1.第一次开启时欢迎页面,右下角的Configure >> Settings

IDEA 新安装后配置建议

如果 打开后不是欢迎页面,通过如下打开

File >> Close Project 回到欢迎页面 >> 右下角的Configure >> Settings

 

 

2.File >> Other Setings >> Default Settings

2 当前项目设置页面:

File ->  Setings

3 常用设置:

Appearance & Behavior >>

修改字体 :Appearance>>Override default fonts by:

打开上次关闭时的项目:System Settings >> Reopen last Project on startup

Keymap>>

插入代码:Main menu>>Code>>Generate 默认为alt insert 。如果没有insert就改一下

类提示:Other>>Class Name Completion 默认快捷键并不是很好建议修改alt+斜杠,先移除再修改

Editor>>

用ctrl滚轮缩放字体:General => Change font size with ctrl+Mouse wheel

类源码的信息提示:General => Show quick documentation on mouse move=√  Delay= 看心情

自动导包:General >> Auto Import => {insert imports on paste =all  , Add unambiguous imports on the fly = √ , Optimize impots on the fily= √}

显示函数分隔符:General>>Appearance => Show method separators = √

代码提示时不区分大小写:General>> Code Completion => Case sensitve completion = None

编码区字号:Font。 size  = 大小自定,建议和控制台字号一样

格式化后最大空行数:Code style >> java => Blank Lines => Keep Maximum Blank Lines ={ 1,1,1}

控制台字号:Color Scheme >> Color Font>>size 大小自定,建议和编码区字号一样

新建文件模板:File and Code Templates  根据项目要求自行修改

设置编码:File Encoding >>{

    Global Encoding=UTF-8,

    Project Encoding=UTF-8(默认是系统默认编码,win10简体中文默认GBK必须改),

    Default enconding for properties files=UTF-8

    Transparent native-to-ascii conversion=√

}

IDEA 新安装后配置建议

Version Control>>

git设置:GIt>>path to Git executale = %Git%\cmd\git.exe

IDEA 新安装后配置建议

 

GitHub设置:GitHub>>Create API Token 登录成功后,会帮你生成一个令牌

IDEA 新安装后配置建议

Build,Execution,Deployment>>

库管理工具配置:Build Tools>>Maven 默认集成了3.3.9版本可以用自己的,idea里修改了仓库,即使setting.xml设置了仓库地址,按idea的位置。

设置java版本:Compiler>> Java Compiler>>projec bytecode version = 8

如果内存不够:Debugger >>Transport = Shared memory

IDEA 新安装后配置建议

发布的服务器:Deployment >> +

容器选择:Application Servers >> + >> Tomcat Home = 根目录

IDEA 新安装后配置建议

4 不常用设置:

Editor>>

缩写生成代码设置:Live Templates

 

 

二 Project Structure设置

添加第三方依赖

Libraies >> + >> 找到刚刚复制jar所在的目录 >>apply

Modules>> 找到刚刚复制jar所在的目录前面打√>>OK

 

 

 

 

 

 

 

相关文章:

  • 2021-10-25
  • 2021-09-16
  • 2021-11-27
  • 2021-11-27
  • 2021-11-19
  • 2021-12-12
  • 2021-07-09
  • 2021-04-28
猜你喜欢
  • 2021-06-28
  • 2021-09-22
  • 2021-10-19
  • 2021-05-16
  • 2021-11-25
  • 2021-11-10
  • 2021-10-04
相关资源
相似解决方案