IntelliJ IDEA新安装设置

一、说明

IDEA的project等同于Eclipse的workspace,等同于Visual Studio中的solution。

IDEA的module才是对应Eclipse中的project,等同于Visual Studio中的project。

 

File -> Settings : 当前project的设置

File -> New Projects Settings/Other Settings -> Settings for New Projects : 全局设置,创建新project的默认设置

 

 

二、全局设置

* 提醒:尽量在全局设置中修改,否则创建新项目时又要重新配置。

File -> New Projects Settings/Other Settings -> Structure for New Projects

2020/2021版:File -> New Projects Settings -> Settings for New Projects

 

编码

Editor -> File Encodings

Tool -> SSH Terminal

全部编码选UTF-8

 

JDK

Build, Execution, Deployment -> Compiler -> Java Compiler

在Project bytecode version选择8

 

Maven

Build, Execution, Deployment -> Build Tool -> Maven

在Maven home directory选择预先装好的Maven目录

在User settings file选择settings.xml文件的路径

 

Maven自动下载源码及文档

Build, Execution, Deployment -> Build Tool -> Maven -> Importing

在Automatically download勾选Sources和Documentation选项

 

Git

Version Control -> Git

在Path to Git executable选择预先装好的Git的bin\git.exe

 

自动导入包和智能移除包

Other Settings -> Auto Import

勾选Add unambiguous imports on the fly和Optimize imports on the fly选项

 

关闭自动下载共享索引

Tools -> Shared Indexes -> Public Shared Indexes

下拉框选择Don't download, use local indexes

 

 

三、当前项目设置

File -> Settings

 

菜单栏及目录树字体

Appearance & Behavior -> Appearance

勾选Use custom font,选择自己偏好的字体和大小

 

代码字体

Editor -> Font

选择自己偏好的字体和大小

 

代码的斜体字

Editor -> Color Scheme -> Language Defaults -> 取消所有Comments里面的Italic勾选

Editor -> Color Scheme -> Java -> Class Fields -> 取消Constant和Static field的Italic勾选

 

行数

Editor -> General -> Appearance

取消Show line numbers的勾选

 

快捷键

Keymap

选择自己偏好的快捷键模板

附录:常用的快捷键的英文名

注释行:Comment with Line Comment
注释块:Comment with Block Comment
格式化代码:Reformat Code
重构重命名:Rename

 

鼠标悬停时显示方法说明

Editor -> General

勾选Show quick documentation on mouse move

 

取消大小写敏感

Editor -> General -> Code Completion

取消勾选Match case选项

 

英文单词纠错

Editor -> Inspections

取消Spelling的勾选

 

Tomcat

Build, Execution, Deployment -> Application Servers -> + -> Tomcat Server

在Tomcat Home选择预先装好的Tomcat目录

注意:在Win10下,装好Tomcat后,有可能需要先打开一下Tomcat目录,开启权限。

 

posted @ 2020-10-18 01:33  Clotho_Lee  阅读(475)  评论(0编辑  收藏  举报