史上最详细的IntelliJ IDEA安装配置激活教程

发布时间:2023年12月27日

📚博客主页:白日依山璟.
?专栏:《Java》|《数据结构与算法》|《每日一题》
??感谢大家点赞👍🏻收藏?评论?🏻,您的三连就是我持续更新的动力。

在这里插入图片描述

0. 前言

工欲善其事必先利其器,作为一名Java开发者,手上必须得有趁手的工具。市面上的Java开发IDE有:EclipseNetBeansLightlyIntelliJ IDEAJDeveloper

作者推荐使用IntelliJ IDEA,为什么推荐它呢?

  1. 提供了强大的代码编辑功能,包括代码补全、语法高亮、代码重构等。
  2. 有丰富的插件支持,可以满足各种项目的需求。
  3. 支持自动化构建、测试和部署,可以提高开发效率。
  4. 提供了强大的调试工具,可以快速定位和解决问题。
  5. 支持多版本控制系统,如Git、SVN等
  6. 可以与其他开发工具(如Maven、Gradle等)无缝集成,方便开发者进行项目管理。。

1. 下载IntelliJ IDEA

官网地址

IntelliJ IDEA支持Windows、macOS、Linux,根据自己的操作系统下载即可。

image-20231227161633112

如果不想下载最新版本的IntelliJ IDEA,也可以下载其他版本。

image-20231227162014356

这里作者就用2022.3.3版本做演示:

点击下载:

image-20231227162413388

2. 安装IntelliJ IDEA

下载后双击安装包

image-20231227163124507

单击next

image-20231227163254911

选择安装路径,作者这里选择C:\APP\Java\IntelliJ IDEA路径

【注意】:路径中尽量不要有中文、空格。

image-20231227163356241

然后一直next即可,完成安装。

image-20231227163818007

3. 激活IntelliJ IDEA

image-20231227164516826

输入激活码

image-20231227165434700

激活码如下:选择对应版本即可。

  • 2018.2及以后版本:2018、2019、2020、2021、2022、2023均可使用!

    MXMQUYT815-eyJsaWNlbnNlSWQiOiJNWE1RVVlUODE1IiwibGljZW5zZWVOYW1lIjoiSHVuYW4gSW5zdGl0dXRlIG9mIFNjaWVuY2UgYW5kIFRlY2hub2xvZ3kiLCJhc3NpZ25lZU5hbWUiOiJqaWtlIGNvZGUiLCJhc3NpZ25lZUVtYWlsIjoiamV0YnJhaW5zMjMwMjA2QG91dGxvb2suY29tIiwibGljZW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eKmNPgyTJzTtw6FedXrrHV99nC7spaY84e+DqfHGYOzMJDrg8xHDYLLHk5Q2z5TlrztXMbtLhjPKrc2+ZajFFshgE5eowfkutSYxeX8uA5czFNT1ZxmDwX1KIelbqhh6XkMQFJui8v8Eo396/sN3RAQSfvBd7Syhch2vlaMP4FAB11AlMKO2x/1hoKiHBU3oU3OKRTfoUTfy1uH3T+t03k1Qkr0dqgHLxiv6QU5WrarR9tx/dapqbsSmrYapmJ7S5+ghc4FTWxXJB1cjJRh3X+gwJIHjOVW+5ZVqXTG2s2Jwi2daDt6XYeigxgL2SlQpeL5kvXNCcuSJurJVcRZFYUkzVv85XfDauqGxYqaehPcK2TzmcXOUWPfxQxLJd2TrqSiO+mseqqkNTb3ZDiYS/ZqdQoGYIUwJqXo+EDgqlmuWUhkWwCkyo4rtTZeAj+nP00v3n8JmXtO30Fip+lxpfsVR3tO1hk4Vi2kmVjXyRkW2G7D7WAVt+91ahFoSeRWlKyb4KcvGvwUaa43fWLem2hyI4di2pZdr3fcYJ3xvL5ejL3m14bKsfoOv
    

4. 新建项目

image-20231227165547054

设置项目名、项目存放地址以及JDK版本(由于作者电脑安装了JDK1.8和JDK17所以这里就有两个JDK版本)

image-20231227170313745

运行程序:右键——Run

image-20231227171049444

5. 基础设置

5.1 设置字体大小

file->Settings->Editor->Font

image-20231227171425421

个人建议把字体大小设置为18,显示器最好能看30行代码。

5.2 鼠标滚轮调整字体大小

file->Settings->Editor->Change font size with Ctrl + Mouse Wheel in,勾选Change font size with Ctrl + Mouse Wheel in选项即可。

image-20231227171946941

5.3 忽略文件

file->Settings->Editor->file Tyes ->lgnores and Folders

这里作者添加了*.dea*iml忽略.idea文件夹和以后缀为.iml的文件

image-20231227172431045

5.4 方法分割线

file->Settings->Editor->General->Appearnce->show method separstors

image-20231227172928724

5.5 询问文件

image-20231227174337434

6. 常用快捷键

快捷键组合实现效果
psvm + Tab键 / main + Tab键public static void main(String[] args)
sout + Tab键System.out.println()
Ctrl + X删除当前行
Ctrl +D复制当前行
Alt+Insert(或右键Generate)生成代码(如get,set方法,构造函数等)
Ctrl+Alt+T生成try catch (或者 Alt+enter选择)
CTRL+ALT+T把选中的代码放在 TRY{} IF{} ELSE{} 里
Ctr+shift+U实现大小写之间的转化
ALT+回车导入包,自动修正
CTRL+ALT+L格式化代码
CTRL+ALT+I自动缩进
CTRL+E最近更改的代码
fori生成for (int i = 0; i < ; i++) {}
Alt + <–左右–>键实现窗口左右更换(多窗口)
Ctrl + 鼠标点击快速找到成员变量的出处
Shift+F6重构/重命名 (包、类、方法、变量、甚至注释等)
CTRL+Q查看当前方法的声明
Ctrl+Alt+V自动创建变量(new 对象();之后选择按快捷键)
Ctrl+O重写方法
Ctrl+I实现方法
ALT+/代码提示
Ctrl+Shift+R在当前项目中替换指定内容
Ctrl+E最近编辑的文件列表
Ctrl+P显示方法参数信息
Ctrl+Shift+Insert查看历史复制记录,idea可以保留历史复制的 100 条记录

7. 插件

  1. CodeGlance

    CodeGlance是一款代码编辑区缩略图插件,可以快速定位代码,使用起来比拖动滚动条方便多了

  2. 彩虹颜色括号:Rainbow Brackets

  3. 阿里代码规约检测:Alibaba Java Coding Guidelines

  4. 汉化插件:chinese(个人建议尽量不要汉化)

最后建议,插件宜少不宜多,选择最适合最需要使用的就行,不必贪多,否则可能会适得其反,IDEA会变得臃肿卡顿,反而影响开发效率。

世界上有三种k,梅花k,方片k,还有任何人不关注我我都会难过的ok

在这里插入图片描述

文章来源:https://blog.csdn.net/2301_79076048/article/details/135252379
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。