GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — IntelliJ-IDEA-Tutorial/postfix-completion-introduce.md at master · anderslu/IntelliJ-IDEA-Tutorial

Expand file tree

/

postfix-completion-introduce.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
15 lines (8 loc) · 1.04 KB
/

postfix-completion-introduce.md

Copy path

File metadata and controls

15 lines (8 loc) · 1.04 KB
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

Postfix Completion 的使用

Postfix Completion 的介绍

Postfix Completion 功能本质上也是代码模板,只是它比 Live Templates 来得更加便捷一点点而已。具体它是做什么的,我们通过下面一张 Gif 演示图来说明:

Postfix Completion 的介绍

  • 如上图标注 1 所示,非空的判断在 Java 代码中应该是非常常见的一句话代码,如果用 Live Templates 当然也是可以快速生成,但是没有上图 Gif 这种 Postfix Completion 效果快。也许只是快了那么 0.01 秒,但是有如此好用的功能不用也是一种浪费。

Postfix Completion 的设置

Postfix Completion 的设置

  • 如上图红圈所示,IntelliJ IDEA 只提供了是否启用的开关,其他的设置就没了。所以如果目前的版本中你还无法想对该功能进行自定义。IntelliJ IDEA 也对常用到的一些固定格式的代码进行了归纳,基本目前也够用了。
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.