Skip to content

Commit 314ab3b

Browse files
committed
规范实用技巧图片路径,与文章路径相匹配
1 parent e9e609c commit 314ab3b

12 files changed

Lines changed: 54 additions & 55 deletions

articles/basic-course/install-intellij-idea-on-windows.md

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

1212
其中,旗舰版是收费的,社区版则是免费的。至于两者的区别嘛,就是旗舰版比社区版的功能更为齐全!如果你想用 IntelliJ IDEA 进行大型项目开发的的话,啥也别说了,下载旗舰版就没错了;如果你只是想体验一下开发的乐趣,下载社区版就足够了。不过话说回来,虽然 IntelliJ IDEA 旗舰版特别贵,但这在我大中国来说,完全不是事啊!
1313

14-
点击右面链接获取注册码:[万人迷的 IntelliJ IDEA 注册码,截止到2019年5月4日](https://blog.csdn.net/qq_35246620/article/details/80522720)
14+
点击右面链接获取注册码:[万人迷的 IntelliJ IDEA 注册码,截止到2020年3月11日](https://guobinhit.blog.csdn.net/article/details/89040919)
1515

1616
咳咳,在此先声明:**支持正版,人人有责(捂脸)!!!**
1717

articles/basic-course/install-pycharm-on-mac.md

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

2525
![pycharm-activation](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/basic-course/install-pycharm-on-mac/pycharm-activation.png)
2626

27-
如上图所示,输入激活码,即可激活 PyCharm!至于 PyCharm 的激活码,可以通过「[IntelliJ IDEA 最新激活码(截止到 2019 年 5 月 4 日](https://blog.csdn.net/qq_35246620/article/details/80522720)」获取,由于 IntelliJ IDEA 和 PyCharm 都属于 JetBrains,因此其激活码可以共用。
27+
如上图所示,输入激活码,即可激活 PyCharm!至于 PyCharm 的激活码,可以通过「[IntelliJ IDEA 最新注册码(截止到2020年3月11日](https://guobinhit.blog.csdn.net/article/details/89040919)」获取,由于 IntelliJ IDEA 和 PyCharm 都属于 JetBrains,因此其激活码可以共用。
2828

2929
![pycharm-over](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/basic-course/install-pycharm-on-mac/pycharm-over.png)
3030

@@ -43,9 +43,10 @@
4343

4444
**相关文章**[详述 Mac 系统下安装及卸载 Python 的方法](https://blog.csdn.net/qq_35246620/article/details/78252549)
4545

46+
4647
----------
48+
———— ☆☆☆ —— [返回 -> 史上最简单的 IntelliJ IDEA 教程 <- 目录](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/README.md) —— ☆☆☆ ————
4749

48-
**温馨提示**:由于 IntelliJ IDEA 和 PyCharm 都属于 JetBrains,因此 IDE 的配置也大致相同,具体可以参考「[史上最简单的 IntelliJ IDEA 教程](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/README.md)」。
4950

5051

5152

articles/basic-course/run-maven-springmvc.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,7 @@ public class AnnotationController {
186186

187187
如果还解决不了问题的话,呃,再检查检查 IntelliJ IDEA 的 Java 编译器的版本吧,囧!
188188

189-
---------
190189

191-
**温馨提示**:上述的示例代码已上传至 GitHub 中的「[gitcode](https://github.com/guobinhit/gitcode)」项目之中啦!
192190

193191
----------
194192
———— ☆☆☆ —— [返回 -> 史上最简单的 IntelliJ IDEA 教程 <- 目录](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/README.md) —— ☆☆☆ ————

articles/practical-skills/code-analysis.md

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

33
在我们用 IntelliJ IDEA 向 SVN 或者 Git 提交代码的时候,IntelliJ IDEA 提供了一个自动分析代码的功能,即`Perform code analysis`
44

5-
![subversion](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/code-analysis/subversion.png)
5+
![subversion](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/practical-skills/code-analysis/subversion.png)
66

77
如上图所示,当我们勾选`Perform code analysis`之后,点击`commit`,IntelliJ IDEA 就会在提交代码之前对项目的代码进行分析检查,并将检查结果以错误和警告的形式展示出来:
88

9-
![code-analysis](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/code-analysis/code-analysis.png)
9+
![code-analysis](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/practical-skills/code-analysis/code-analysis.png)
1010

1111
如上图所示,这是`Code Analysis`的结果示例,为`No errors and 6 warnings`. 如果我们想进一步查看`Code Analysis`的结果,即`errors``warnings`的详情,可以点击`Review`,点击`Review`之后, IntelliJ IDEA 会展示出一系列具体发生错误和警告的类及位置,这有助于我们解决问题。
1212

articles/practical-skills/color-code.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,51 +4,51 @@
44

55
- `VibrantUnknown(Darcula)`
66

7-
![VibrantUnknown](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/color-code/VibrantUnknown.png)
7+
![VibrantUnknown](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/practical-skills/color-code/VibrantUnknown.png)
88

99
- `FadeComments`
1010

11-
![FadeComments](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/color-code/FadeComments.png)
11+
![FadeComments](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/practical-skills/color-code/FadeComments.png)
1212

1313
- `NicePython`
1414

15-
![NicePython](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/color-code/NicePython.png)
15+
![NicePython](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/practical-skills/color-code/NicePython.png)
1616

1717
- `Solarized`
1818

19-
![Solarized](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/color-code/Solarized.png)
19+
![Solarized](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/practical-skills/color-code/Solarized.png)
2020

2121
- `Havenjark`
2222

23-
![Havenjark](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/color-code/Havenjark.png)
23+
![Havenjark](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/practical-skills/color-code/Havenjark.png)
2424

2525
- `GeditForElegantGnome`
2626

27-
![GeditForElegantGnome](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/color-code/GeditForElegantGnome.png)
27+
![GeditForElegantGnome](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/practical-skills/color-code/GeditForElegantGnome.png)
2828

2929
- `Gvim`
3030

31-
![Gvim](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/color-code/Gvim.png)
31+
![Gvim](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/practical-skills/color-code/Gvim.png)
3232

3333
在选完我们中意的主题之后,需要大家到「[intellij-idea-tutorial](https://github.com/guobinhit/intellij-idea-tutorial/tree/master/resources/idea-theme)」中下载相应的主题。以「[SublimeMonoKai](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/resources/idea-theme/SublimeMonoKai.jar)」主题为例:
3434

35-
![idea-theme](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/color-code/idea-theme.png)
35+
![idea-theme](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/practical-skills/color-code/idea-theme.png)
3636

3737
如上图所示,到 GitHub 中下载`jar`包,备用。然后,
3838

39-
![import-settings](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/color-code/import-settings.png)
39+
![import-settings](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/practical-skills/color-code/import-settings.png)
4040

4141
依次选择`File -> Import Settings`,导入我们已经下载完的「SublimeMonoKai」主题的`jar`包。
4242

43-
![preferences](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/color-code/preferences.png)
43+
![preferences](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/practical-skills/color-code/preferences.png)
4444

4545
以 Mac 为例,再选择`IntelliJ IDEA -> Preferences`,进入`Preferences`
4646

47-
![colors-fonts](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/color-code/colors-fonts.png)
47+
![colors-fonts](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/practical-skills/color-code/colors-fonts.png)
4848

4949
然后选择`Colors & Fonts`,设置`Scheme``SublimeMonoKai`即可。在我们完成以上操作,重新启动 IntelliJ IDEA 之后(必须重新启动才能生效),效果如下图所示:
5050

51-
![assignment](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/color-code/assignment.png)
51+
![assignment](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/practical-skills/color-code/assignment.png)
5252

5353
最后,希望大家在编程的时候都能够有一个愉悦的心情!
5454

articles/practical-skills/compare-code.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Sometimes,我们会有这样的需求,即:**想对比出两个不同版本
44

55
- **第 1 种**:如果我们是从 SVN 检出的项目,并且想比较本地代码与从 SVN 检出时的代码相比都有那些区别,可以按如下步骤操作,
66

7-
![show-history](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/compare-code/show-history.png)
7+
![show-history](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/practical-skills/compare-code/show-history.png)
88

99
如上图所示,在代码编辑区,`右键`唤出功能菜单,然后选择`Subversion`,进而会展示出更多的可选项,例如:
1010

@@ -18,15 +18,15 @@ Sometimes,我们会有这样的需求,即:**想对比出两个不同版本
1818

1919
- **第 2 种**:比较本地两份代码的区别,可以按如下步骤操作,
2020

21-
![compare-with](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/compare-code/compare-with.png)
21+
![compare-with](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/practical-skills/compare-code/compare-with.png)
2222

2323
首先,选中目标文件夹(图中选择`src`文件夹),`右键`唤出功能菜单,然后点击`Compare With`
2424

25-
![local-project](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/compare-code/local-project.png)
25+
![local-project](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/practical-skills/compare-code/local-project.png)
2626

2727
如上图所示,选中本地另一份想要与之对比的代码的相同目录,然后点击`Open`或者`打开``确定`按钮:
2828

29-
![show-diff](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/compare-code/show-diff.png)
29+
![show-diff](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/practical-skills/compare-code/show-diff.png)
3030

3131
如上图所示,清晰明了的展示了两份代码的区别。
3232

articles/practical-skills/conflict-jar.md

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

33
在实际的 Maven 项目开发中,由于项目引入的依赖过多,遇到 jar 冲突算是一个很常见的问题了。在本文中,我们就一起来看看,如何使用 IntelliJ IDEA 解决 jar 包冲突的问题!简单粗暴,直接上示例:
44

5-
![maven-project](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/conflict-jar/maven-project.png)
5+
![maven-project](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/practical-skills/conflict-jar/maven-project.png)
66

77
- **标注 1**`Maven Project`,Maven 项目选项;
88
- **标注 2**`Dependencies`,项目依赖;
99
- **标注 3**`Show Dependencies`,展示项目依赖图。
1010

1111
其中,只有在点击 **标注 2** 所示的`Dependencies`之后,才会显示 **标注 3** 所示的`Show Dependencies`按钮。在这里,我们点击`Show Dependencies`按钮:
1212

13-
![show-dependencies](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/conflict-jar/show-dependencies.png)
13+
![show-dependencies](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/practical-skills/conflict-jar/show-dependencies.png)
1414

1515
如上图所示,展示了我们项目的依赖图。But,依赖图太小了,根本没法看啊?好办,点击鼠标右键,呼出右键菜单栏,然后点击`Actual Size`
1616

17-
![actual-size](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/conflict-jar/actual-size.png)
17+
![actual-size](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/practical-skills/conflict-jar/actual-size.png)
1818

1919
如上图所示,项目依赖图的尺寸放大了,这回利于我们排除 jar 包冲突的问题啦!
2020

21-
![jar-picture](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/conflict-jar/jar-picture.png)
21+
![jar-picture](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/practical-skills/conflict-jar/jar-picture.png)
2222

2323
如果我们仔细观察上图,会发现在项目依赖图中,有一些红色标记的线,实际上,这些红色标记出来的线所指向的 jar 包,就是项目中冲突的 jar 包!且在我们点击 jar 包之后,还会显示出多条指向 jar 包的红色虚线,其代表着该 jar 包被多次引用,及具体引用路径。
2424

25-
![exclude-jar](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/conflict-jar/exclude-jar.png)
25+
![exclude-jar](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/practical-skills/conflict-jar/exclude-jar.png)
2626

2727
如上图所示,想要排除冲突的 jar 包,其方法为:**点击冲突的 jar 包,右键呼出菜单栏,点击`Exclude`选项**
2828

29-
![test-exclude-jar](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/conflict-jar/test-exclude-jar.png)
29+
![test-exclude-jar](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/practical-skills/conflict-jar/test-exclude-jar.png)
3030

3131
如上图所示,在排除冲突的 jar 包之后,`pom.xml`文件会自动更新,添加排除语句。
3232

articles/practical-skills/recovery-code.md

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

33
在我们日常开发项目的时候,难免遇到在开发过程中由于某种原因,想要将代码恢复到前一版本的情景。特别地,在我们删除了某些代码,想要恢复之前删除的代码的时候,了解这个在 IntelliJ IDEA 中恢复代码的方法就显得尤为重要啦!现在,以博主之前写的测试代码为例,进行详细的讲解:
44

5-
![equalsAndHD](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/recovery-code/equalsAndHD.png)
5+
![equalsAndHD](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/practical-skills/recovery-code/equalsAndHD.png)
66

77
如上图所示,这是博主之前写的测试恒等运算符和`equals()`区别的测试类。接下来,我们在这段代码中添加一条输出语句:
88

9-
![equalsAndHD-system](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/recovery-code/equalsAndHD-system.png)
9+
![equalsAndHD-system](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/practical-skills/recovery-code/equalsAndHD-system.png)
1010

1111
如上图所示,我们添加了一条输出`hello world`的代码。现在嘛,有这样一个场景,那就是:**要求我们仅输出`==``equal()`的区别即可,不需要添加额外的输出语句**。这就要求我们将代码恢复到之前的状态啦!在此忽略直接删除代码的方法,那该怎么办呢?
1212

13-
![local-show-history](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/recovery-code/local-show-history.png)
13+
![local-show-history](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/practical-skills/recovery-code/local-show-history.png)
1414

1515
如上图所示,我们只需要选择对应的类文件,点击鼠标右键,然后依次选择`Local History``Show History`,进入如下界面:
1616

17-
![compare-history-current](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/recovery-code/compare-history-current.png)
17+
![compare-history-current](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/practical-skills/recovery-code/compare-history-current.png)
1818

1919
如上图所示,最左边展示了版本记录,由于博主仅进行过这一次修改,因此这里只显示了`2 minutes ago`的版本记录;在往右看,依次展示了前一版本与当前版本的代码,并给出了区别,可谓是清晰简洁:
2020

21-
![revert](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/recovery-code/revert.png)
21+
![revert](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/practical-skills/recovery-code/revert.png)
2222

2323
然后,选择我们想要恢复的版本,呃,好吧,现在我们仅有一个版本可以选择,点击鼠标右键,选择`Revert`
2424

25-
![reverted-to-ago](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/recovery-code/reverted-to-ago.png)
25+
![reverted-to-ago](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/practical-skills/recovery-code/reverted-to-ago.png)
2626

2727
如上图所示,当我们点击`Revert`之后,右侧的两个版本同步至“前一版本”,并给出了恢复提示。最后,我们再回到代码编辑区检查一下是否真的恢复到前一版本了呢?
2828

29-
![revert-result](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/recovery-code/revert-result.png)
29+
![revert-result](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/practical-skills/recovery-code/revert-result.png)
3030

3131
如上图所示,显然我们的操作成功了,代码已经恢复至前一版本啦!But,通过`Local History`恢复代码有的时候并不方便,例如我们将项目中的代码进行了多处修改,这时通过`Local History`恢复代码就显得很麻烦,因为它更倾向于恢复某一个文件的修改。在这里,如果我们的项目是通过`Subversion`也就是`SVN`检出的,那么我们就多了一种恢复代码的方法,即通过`Subversion`进行`Revert`操作。
3232

3333
**操作步骤**
3434

35-
![subversion](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/recovery-code/subversion.png)
35+
![subversion](https://github.com/guobinhit/intellij-idea-tutorial/blob/master/images/practical-skills/recovery-code/subversion.png)
3636

3737
- **标注 1**:项目名称;
3838
- **标注 2**`Subversion`

0 commit comments

Comments
 (0)