Skip to content
Huagang Li edited this page Oct 12, 2016 · 2 revisions

Configure (配置)

1. Import Settings (导入设置)

2. Default Settings (默认设置)

Appearance & Behavior

Appearance

  1. UI Theme (用户界面主题):IntelliJ (默认)、Darcula
  • Override default fonts (覆盖默认字体)

Keymap (快捷键)

Editor

General

  1. Change font size (Zoom) with Ctrl+Mouse Wheel
Auto Import (自动导入)
  1. Optimize imports on the fly
  • Add unambiguous imports on the fly
Appearance
  1. Show line numbers
  • Show method separators
Code Completion (代码完成)
Postfix Completion (Tab)

Code Style (代码样式)

  1. Line separator (for new files):Unix and OS X (\n)、System-Dependent
Java
Imports (导入)
  1. Use fully qualified class names
  • Class count to use import with '*': 50
  • Names count to use static import with '*': 30

File and Code Templates (文件和代码模板)

File Encodings (文件编码)

  1. IDE Encoding: UTF-8
  • Project Encoding: UTF-8
  • Properties Files (*.properties): UTF-8

Live Templates (动态模板) (Tab)

  1. 定制模板(user)

Copyright (版权声明)

TODO (待办事项)

  1. 定制源码阅读标记:核心接口、核心类、核心方法、核心实现 ...

Plugins (插件)

  1. FindBugs
  • CheckStyle
  • Lombok

Build, Execution, Deployment

Compiler (编译器)

Java Compiler
  1. Project bytecode version (leave blank for JDK default): 1.8、1.7
Annotation Processors
  1. Lombok 注解插件使用
Application Servers (应用服务器)

Tools (工具集)

Diagrams

3. Project Defaults (项目默认设置)

Project Structure (项目结构)

Project Settings (项目设置)

  1. Project SDK: JDK xxx
  • Project language level: 9 - JDK modularization etc.、8 - Lambdas, type annotations etc.、7 - Diamonds, ARM, multi-catch etc.

Platform Settings (平台设置)

  1. SDKs (JDK)

Run Configurations

  1. Servlet Container (Web应用运行环境)
Clone this wiki locally