Update README.md
This commit is contained in:
@@ -1,11 +1,11 @@
|
|||||||
# IntelliJ IDEA 个人使用及配置
|
# JetBrains IntelliJ IDEA 个人使用及配置
|
||||||
|
|
||||||
本项目仅用于个人学习与参考,请勿转载分发、请勿用于商业用途。对于使用本项目造成的任何后果均与作者无关。如有侵权,请联系立即删除。
|
本项目仅用于个人学习与参考,请勿转载分发、请勿用于商业用途。对于使用本项目造成的任何后果均与作者无关。如有侵权,请联系立即删除。
|
||||||
|
|
||||||
## 1. 简介
|
## 1. 简介
|
||||||
|
|
||||||
<!-- TOC -->
|
<!-- TOC -->
|
||||||
* [IntelliJ IDEA 个人使用及配置](#intellij-idea-个人使用及配置)
|
* [JetBrains IntelliJ IDEA 个人使用及配置](#jetbrains-intellij-idea-个人使用及配置)
|
||||||
* [1. 简介](#1-简介)
|
* [1. 简介](#1-简介)
|
||||||
* [2. 激活](#2-激活)
|
* [2. 激活](#2-激活)
|
||||||
* [2.1 正式激活](#21-正式激活)
|
* [2.1 正式激活](#21-正式激活)
|
||||||
@@ -19,9 +19,11 @@
|
|||||||
* [5. 常用配置](#5-常用配置)
|
* [5. 常用配置](#5-常用配置)
|
||||||
* [5.1 主题](#51-主题)
|
* [5.1 主题](#51-主题)
|
||||||
* [5.2 字体](#52-字体)
|
* [5.2 字体](#52-字体)
|
||||||
* [5.3 代码模板](#53-代码模板)
|
* [5.3 编码](#53-编码)
|
||||||
* [5.4 文件头注释](#54-文件头注释)
|
* [5.4 切换语言](#54-切换语言)
|
||||||
* [5.5 注释不顶格(不在行首)](#55-注释不顶格不在行首)
|
* [5.5 代码模板](#55-代码模板)
|
||||||
|
* [5.6 文件头注释](#56-文件头注释)
|
||||||
|
* [5.7 注释不顶格(不在行首)](#57-注释不顶格不在行首)
|
||||||
<!-- TOC -->
|
<!-- TOC -->
|
||||||
|
|
||||||
## 2. 激活
|
## 2. 激活
|
||||||
@@ -58,12 +60,17 @@
|
|||||||
|
|
||||||
2. 进入仓库,复制 `ja-netfilter.jar` 文件的绝对路径
|
2. 进入仓库,复制 `ja-netfilter.jar` 文件的绝对路径
|
||||||
|
|
||||||
3. 修改 IDEA 的 `idea.vmoptions` 文件(文件在哪,Google 一下)
|
3. 修改 JetBrains 的 `.vmoptions` 文件(文件在哪,Google 一下)
|
||||||
|
|
||||||
Mac 上的地址:`~/Library/Application\ Support/JetBrains/IntelliJIdea2025.2/idea.vmoptions`
|
```shell
|
||||||
|
# 比如 idea 在 Mac 上的地址
|
||||||
在末尾填上:
|
~/Library/Application\ Support/JetBrains/IntelliJIdea2025.2/idea.vmoptions
|
||||||
|
# 比如 pycharm 在 Mac 上的地址
|
||||||
|
~/Library/Application\ Support/JetBrains/IntelliJIdea2025.2/pycharm.vmoptions
|
||||||
|
|
||||||
|
# 其他同理的。。。
|
||||||
|
```
|
||||||
|
在末尾填上(若没有 `.vmoptions` 文件则创建即可):
|
||||||
```shell
|
```shell
|
||||||
-Xmx4096m
|
-Xmx4096m
|
||||||
|
|
||||||
@@ -144,19 +151,31 @@
|
|||||||
|
|
||||||
### 5.1 主题
|
### 5.1 主题
|
||||||
|
|
||||||
- 默认的 吸血鬼 主题,完美~
|
- Appearance & Behavior -> Appearance -> Theme
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
### 5.2 字体
|
### 5.2 字体
|
||||||
|
|
||||||
* 推荐 JetBrains Mono
|
* 直接设置字体大小:Editor -> Font
|
||||||
* JetBrains IDEA 应用字体和代码字体设置:
|
* 使用鼠标滚轮调整字体大小:Editor -> General -> Change font size (Zoom) with Ctrl + Mouse Wheel
|
||||||
|
|
||||||

|

|
||||||

|

|
||||||
|
|
||||||
### 5.3 代码模板
|
### 5.3 编码
|
||||||
|
|
||||||
|
* Editor -> File encodings
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
### 5.4 切换语言
|
||||||
|
|
||||||
|
* Appearance & Behavior -> System Settings -> Language and Region
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
### 5.5 代码模板
|
||||||
|
|
||||||
类似 sysout:
|
类似 sysout:
|
||||||
|
|
||||||
@@ -167,7 +186,7 @@
|
|||||||
|
|
||||||

|

|
||||||
|
|
||||||
### 5.4 文件头注释
|
### 5.6 文件头注释
|
||||||
|
|
||||||
* Editor -> File and Code Templates
|
* Editor -> File and Code Templates
|
||||||
|
|
||||||
@@ -181,7 +200,7 @@
|
|||||||
|
|
||||||

|

|
||||||
|
|
||||||
### 5.5 注释不顶格(不在行首)
|
### 5.7 注释不顶格(不在行首)
|
||||||
|
|
||||||
* Editor -> Code Style -> Java -> Code Generation
|
* Editor -> Code Style -> Java -> Code Generation
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user