forked from judasn/IntelliJ-IDEA-Tutorial
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
YouMeek
committed
Oct 26, 2015
1 parent
057d2c4
commit 0d7548e
Showing
4 changed files
with
17 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Postfix Completion 的使用 | ||
|
||
## Postfix Completion 的介绍 | ||
|
||
Postfix Completion 功能本质上也是代码模板, 只是它比 Live Templates 来得更加便捷一点点而已。具体它是做什么的,我们通过下面一张 Gif 演示图来说明: | ||
|
||
![Postfix Completion 的介绍](images/xix-c-postfix-completion-introduce-1.gif) | ||
|
||
> * 如上图标注 1 所示,非空的判断在 Java 代码中应该是非常常见的一句话代码,如果用 Live Templates 当然也是可以快速生成,但是没有上图 Gif 这种 Postfix Completion 效果快。也许只是快了那么 0.01 秒,但是有如此好用的功能不用也是一种浪费。 | ||
## Postfix Completion 的设置 | ||
|
||
![Postfix Completion 的设置](images/xix-d-postfix-completion-settings-1.jpg) | ||
|
||
> * 如上图红圈所示,IntelliJ IDEA 只提供了是否启用的开关,其他的设置就没了。所以如果目前的版本中你还无法想对该功能进行自定义。IntelliJ IDEA 也对常用到的一些固定格式的代码进行了归纳,基本目前也够用了。 |