Skip to content

Commit a8977d1

Browse files
committed
规范基础教程图片路径,与文章路径相匹配
1 parent cdd270d commit a8977d1

27 files changed

Lines changed: 164 additions & 164 deletions

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
- 安装 IDE 的方法
2323
- [基于 Windows 系统安装 IntelliJ IDEA 的方法](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/articles/basic-course/install-intellij-idea-on-windows.md)
24-
- [基于 Mac 系统安装 PyCharm 的方法](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/articles/basic-course/pycharm.md)
24+
- [基于 Mac 系统安装 PyCharm 的方法](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/articles/basic-course/install-pycharm-on-mac.md)
2525
- 初识 IDEA 的世界
2626
- [首次运行 IntelliJ IDEA 示例](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/articles/basic-course/first-run-idea.md)
2727
- 核心文件讲解

articles/basic-course/compile-method.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
相对于 Eclipse 的实时自动编译,IntelliJ IDEA 的编译更加手动化,虽然 IntelliJ IDEA 也可以通过设置开启实时编译,但是太浪费资源了,因此不建议这样做。IntelliJ IDEA 编译方式除了手工点击编译按钮进行编译之外,还可以在“容器”运行之前配置一个编译事件,先编译后运行。在默认情况下,IntelliJ IDEA 也都是这样设置的,因此在实际开发中,我们也不用太注意编译这件事。虽然 IntelliJ IDEA 没有实时编译(未设置时),但是这并不影响代码的自动检查。但是对于多个类之间的关联关系,还是要等`Build``Rebuild`触发的时候才会做相关检查的。
44

5-
![build](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/compile-method/build.png)
5+
![build](https://github.com/guobinhit/intellij-idea-tutorial/tree/master/images/basic-course/compile-method/build.png)
66

77
- **标注 1**`Build Project`,编译项目;
88
- **标注 2**`Build Module`,编译模块;
@@ -17,23 +17,23 @@
1717

1818
接下来,我们一起看看运行之前的编译情况:
1919

20-
![run-debug-configuration](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/compile-method/run-debug-configuration.png)
20+
![run-debug-configuration](https://github.com/guobinhit/intellij-idea-tutorial/tree/master/images/basic-course/compile-method/run-debug-configuration.png)
2121

2222
如上图所示,IntelliJ IDEA 默认在运行项目之前先进行`Build`操作。那么,我们再一起看看 IntelliJ IDEA 编译器的设置和选择:
2323

24-
![settings-1](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/compile-method/settings-1.png)
24+
![settings-1](https://github.com/guobinhit/intellij-idea-tutorial/tree/master/images/basic-course/compile-method/settings-1.png)
2525

2626
- **标注 1**:设置自动编译项目;
2727
- **标注2**:设置编译时`heap`大小;
2828
- **标注 3**:设置编译时的`VM`参数。
2929

3030
如上图所示,我们定位到`Build、Execution、Deployment > Complie`页面,通过勾选 **标注 1** 所示的`Build project automatically`,我们可以设置 IntelliJ IDEA 进行自动编译;**标注 2** 表示设置编译`heap`大小,默认为 700,如果使用 64 位的机器,在内存足够的情况下,可以尝试修改为 1500 或以上,此外,如果我们在编译的时候报出`OutOfMemoryError`的错误,也可以来修改(减小)这个参数;**标注 3** 表示设置编译时的虚拟机参数,这个可以根据需求进行个性化设置,一般情况下,默认就可以。
3131

32-
![settings-2](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/compile-method/settings-2.png)
32+
![settings-2](https://github.com/guobinhit/intellij-idea-tutorial/tree/master/images/basic-course/compile-method/settings-2.png)
3333

3434
如上图所示,我们定位到`Build、Execution、Deployment > Compiler > Excludes`页面,可以通过点击 **标注 1** 所示的`+``-`,任意添加或删减目录(或文件)进行编译排除。在编译项目的时候,如果任何一个可编译的文件没有编译通过,那么 IntelliJ IDEA 就无法运行起来,必须等全部问题解决并且编译通过之后,IntelliJ IDEA 才能运行起来。不过有可能在开发过程中,某一个包目录的文件编译无法通过,但是我们又不急着改,这时我们就可以考虑把该包加入到排除编译列表中,这样的话,项目就可以运行起来啦!
3535

36-
![settings-3](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/compile-method/settings-3.png)
36+
![settings-3](https://github.com/guobinhit/intellij-idea-tutorial/tree/master/images/basic-course/compile-method/settings-3.png)
3737

3838
- **标注 1**`Use compile`
3939
- **标注 2**`Project bytecode version`

articles/basic-course/core-file-talk.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
在本篇博文中,我们主要讲解一下 IntelliJ IDEA 安装目录中的一些核心文件的功能及用法:
99

10-
![intellij-idea-bin](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/core-file-talk/intellij-idea-bin.png)
10+
![intellij-idea-bin](https://github.com/guobinhit/intellij-idea-tutorial/tree/master/images/basic-course/core-file-talk/intellij-idea-bin.png)
1111

1212
如上图所示,我们定位到了 IntelliJ IDEA 安装目录的`bin`目录下,`bin`是 binary 的缩写,代表的意思是二进制,因此`bin`目录就是用来存放二进制文件的。在这里,我们主要了解上图中被红色方框圈出来的五个文件:
1313

@@ -19,7 +19,7 @@
1919

2020
接下来,我们详细了解上述配置文件的作用:
2121

22-
![idea64-vmoptions](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/core-file-talk/idea64-vmoptions.png)
22+
![idea64-vmoptions](https://github.com/guobinhit/intellij-idea-tutorial/tree/master/images/basic-course/core-file-talk/idea64-vmoptions.png)
2323

2424
如上图所示,我们打开了`idea64.exe.vmoptions`配置文件。如果我们的电脑是 32 位系统,则应该打开`idea.exe.vmoptions`配置文件,但是由于 32 位系统内存一般都是 2G 左右,也没有多大空间可以调整,所以一般不需要修改。修改 JVM 配置文件的原则就是根据我们机器的内存情况来判断,个人建议 8G 以下的机器或是静态页面开发者无需修改,如果我们要开发大型的 Java 项目或是 Android 项目,并且内存大于 8G,建议进行修改,而且经常修改的也就是下面 4 个参数。在此处,我们以 16G 内存的机器为例:
2525

@@ -31,7 +31,7 @@
3131

3232
在这里,我们只是举个修改示例,由于每台机器的配置不一样,因此每台机器的最佳的配置参数也是不一样的,最好的调整方式是根据 JConsole 这类工具进行观察后个性化调整。
3333

34-
![idea-properties](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/core-file-talk/idea-properties.png)
34+
![idea-properties](https://github.com/guobinhit/intellij-idea-tutorial/tree/master/images/basic-course/core-file-talk/idea-properties.png)
3535

3636
如上图所示,我们打开了`idea.properties`配置文件,其没有 32 位和 64 位之分,修改的原则主要是根据个人对 IntelliJ IDEA 的个性化配置情况来分析,经常修改的是下面 4 个参数:
3737

articles/basic-course/debug-skills.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
在我们的编程生涯中,调试代码是免不了的,而如何调试代码就显得尤为重要了,其中利用 IDE 自带的调试工具,是我们快速定位问题的重要手段之一。在此,我们就一起来了解一下 IntelliJ IDEA 自带的调试工具,熟悉常用的`Debug`技巧。
55

6-
![debug-common-button](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/debug-skills/debug-common-button.png)
6+
![debug-common-button](https://github.com/guobinhit/intellij-idea-tutorial/tree/master/images/basic-course/debug-skills/debug-common-button.png)
77

88
- **标注 1**`Show Execution Point `,显示执行端点(`Alt + F10`);
99
- **标注 2**`Step Over`,跳到下一步(`F8`);
@@ -19,7 +19,7 @@
1919

2020
如上述所示,都是一些常用的功能。其中,点击 **标注 9** 所示的`View Breakpoints`按钮,如下图所示:
2121

22-
![show-breakpoints-control](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/debug-skills/show-breakpoints-control.png)
22+
![show-breakpoints-control](https://github.com/guobinhit/intellij-idea-tutorial/tree/master/images/basic-course/debug-skills/show-breakpoints-control.png)
2323

2424
- **标注 1**`View Breakpoints`,查看断点,展示更多高级设置;
2525
- **标注 2**`Java Line Breakpoints`,展示项目中设置的所有断点;
@@ -29,11 +29,11 @@
2929

3030
在上述的标注中,通过 **标注 3** 我们可以很方便的设置条件断点;通过 **标注 4** 我们可以设置一次性断点,不用我们每次手动的设置和取消断点;通过 **标注 5** 我们可以设置更加高级的断点击中条件。特别地,在`Debug`模式下,我们也可以双击鼠标右键,唤出常用的工具菜单,其效果如下图红框标记所示,提供了评估表达式、进入光标位置、强制进入光标位置和添加`Watches`等快捷按钮:
3131

32-
![double-click-right-key](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/debug-skills/double-click-right-key.png)
32+
![double-click-right-key](https://github.com/guobinhit/intellij-idea-tutorial/tree/master/images/basic-course/debug-skills/double-click-right-key.png)
3333

3434
当我们点击`Evaluate Expression`按钮之后,会弹出如下界面:
3535

36-
![evaluate-expression](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/debug-skills/evaluate-expression.png)
36+
![evaluate-expression](https://github.com/guobinhit/intellij-idea-tutorial/tree/master/images/basic-course/debug-skills/evaluate-expression.png)
3737

3838
- **标注 1**`Condition expression`,待评估的表达式;
3939
- **标注 2**`Evaluate`,评估按钮,点击后进行评估。

articles/basic-course/first-run-idea.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
首先,双击打开 IntelliJ IDEA 的快捷方式:
44

5-
![intellij-idea-icon](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/first-run-idea/intellij-idea-icon.png)
5+
![intellij-idea-icon](https://github.com/guobinhit/intellij-idea-tutorial/tree/master/images/basic-course/first-run-idea/intellij-idea-icon.png)
66

77
在此,需要说明:
88

@@ -11,7 +11,7 @@
1111

1212
进入向导界面,如下图所示:
1313

14-
![complete-installation](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/first-run-idea/complete-installation.png)
14+
![complete-installation](https://github.com/guobinhit/intellij-idea-tutorial/tree/master/images/basic-course/first-run-idea/complete-installation.png)
1515

1616
- **标注 1**:如果我们的电脑曾经安装过 IntelliJ IDEA 并且保留了其配置文件目录的话,则可以通过此按钮进行导入;
1717
- **标注 2**:如果我们的电脑没有安装过早期任何版本的 IntelliJ IDEA 的话,则可以通过此按钮让 IntelliJ IDEA 生成一份新的配置文件。
@@ -22,43 +22,43 @@
2222

2323
其功能为**自动识别曾经安装过的 IntelliJ IDEA 旧版本的配置**,如果我们选择了此按钮,则 IntelliJ IDEA 将自动把旧版本的配置文件转移到新版本的配置文件目录中。在此处,点击`OK`后,跳转到如下界面:
2424

25-
![privacy-policy](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/first-run-idea/privacy-policy.png)
25+
![privacy-policy](https://github.com/guobinhit/intellij-idea-tutorial/tree/master/images/basic-course/first-run-idea/privacy-policy.png)
2626

2727
此页面展示的是 IntelliJ IDEA 的隐私协议,点击`Accept`即可进入“激活许可证”界面:
2828

29-
![license-activation](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/first-run-idea/license-activation.png)
29+
![license-activation](https://github.com/guobinhit/intellij-idea-tutorial/tree/master/images/basic-course/first-run-idea/license-activation.png)
3030

3131
如上图所示,默认选择 **标注 1**`Activate`,验证 IntelliJ IDEA 的许可证有如图展示的三种方式,在这里,我们选择 **标注 2**`Evaluate for free`进行演示,默认是免费试用 30 天,选择后进入如下界面:
3232

33-
![license-activation-2](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/first-run-idea/license-activation-2.png)
33+
![license-activation-2](https://github.com/guobinhit/intellij-idea-tutorial/tree/master/images/basic-course/first-run-idea/license-activation-2.png)
3434

3535
- **标注 1**`Evaluate for free`,免费试用,默认 30 天;
3636
- **标注 2**:选择是否发送提示信息和产品特点;
3737
- **标注 3**:勾选 **标注 2** 的选项后,接收资料的邮箱。
3838

3939
选择完成后,点击`Evaluate`,进入如下界面:
4040

41-
![license-agreement](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/first-run-idea/license-agreement.png)
41+
![license-agreement](https://github.com/guobinhit/intellij-idea-tutorial/tree/master/images/basic-course/first-run-idea/license-agreement.png)
4242

4343
如上图所示,展示了 IntelliJ IDEA 的许可协议地址,不用管它是什么鬼,点击`Accept`,将跳转到如下界面:
4444

45-
![ui-themes](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/first-run-idea/ui-themes.png)
45+
![ui-themes](https://github.com/guobinhit/intellij-idea-tutorial/tree/master/images/basic-course/first-run-idea/ui-themes.png)
4646

4747
- **标注 1**:IntelliJ IDEA 默认的 UI 主题;
4848
- **标注 2**:个人比较喜欢的 Darcula 黑色主题;
4949
- **标注 3**:跳过所有向导,选择默认配置(不建议选择)。
5050

5151
在此处,我们选择 Darcula 黑色 UI 主题并选择`Next: Default plugins`,进入到插件配置页面:
5252

53-
![customize](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/first-run-idea/customize.png)
53+
![customize](https://github.com/guobinhit/intellij-idea-tutorial/tree/master/images/basic-course/first-run-idea/customize.png)
5454

5555
如上图所示,展示了 IntelliJ IDEA 支持的一些主要的插件或者说是工具、扩展功能。我们可以根据自己开发的实际需求禁用一些插件,这样可以稍微减轻 IntelliJ IDEA 运行时所占内存,加快运行速度,但是效果并不很明显。在这里,我们选择 Java Frameworks 的`Customize`进行演示,点击后,进入到如下界面:
5656

57-
![feature-plugins](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/first-run-idea/feature-plugins.png)
57+
![feature-plugins](https://github.com/guobinhit/intellij-idea-tutorial/tree/master/images/basic-course/first-run-idea/feature-plugins.png)
5858

5959
如上图所示,展示了 IntelliJ IDEA 支持的所有 Java Frameworks,我们可以根据自己的开发需求不启用指定的框架,去掉框架前面的勾选框就表示不启用该框架的支持功能。对于不启用的框架,我们也可以在后期重新进行勾选。选择完成后,点击`Save Changes and Go Back`跳转到前一个界面,然后在点击`Start using IntelliJ IDEA`即表示已经初步配置完 IntelliJ IDEA,进入 IntelliJ IDEA 的启动界面:
6060

61-
![ultimate-over](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/first-run-idea/ultimate-over.png)
61+
![ultimate-over](https://github.com/guobinhit/intellij-idea-tutorial/tree/master/images/basic-course/first-run-idea/ultimate-over.png)
6262

6363
如上图所示,待进度条走完之后,**欢迎进入 IntelliJ IDEA 的编码世界!**
6464

0 commit comments

Comments
 (0)