/ java

Intellij IDEA 小技巧

0. 官方文档

https://www.jetbrains.com/help/idea/installation-guide.html?section=Windows

1. 生成 jar 包

配置

File -> Project Structure -> Project Settings -> Artifacts
添加 jar包配置

打包

Build -> Build Artifacts

2. codesnippet

iter Iteration according to Java SDK 1.5 style
itar Iterate elements of array
itco Iterate elements of java.util.Collection
itit Iterate elements of java.util.Iterator
itli Iterate elements of java.util.List

3. code surround with

  1. Select the desired code fragment.
  2. On the Code menu, click Surround With (⌥⌘T).
  3. Select the necessary surround statement from the list.
    20190413134920