You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by yi...@apache.org on 2022/06/15 00:14:21 UTC

[incubator-doris] branch master updated: [enhancement](community): polish doc to reformat (#10137)

This is an automated email from the ASF dual-hosted git repository.

yiguolei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-doris.git


The following commit(s) were added to refs/heads/master by this push:
     new be3aa2aa37 [enhancement](community): polish doc to reformat (#10137)
be3aa2aa37 is described below

commit be3aa2aa372108fc1295e9dd91ae3f70ec4309f1
Author: jakevin <30...@users.noreply.github.com>
AuthorDate: Wed Jun 15 08:14:13 2022 +0800

    [enhancement](community): polish doc to reformat (#10137)
---
 docs/en/developer/developer-guide/java-format-code.md    | 6 ++++++
 docs/zh-CN/developer/developer-guide/java-format-code.md | 7 +++++++
 2 files changed, 13 insertions(+)

diff --git a/docs/en/developer/developer-guide/java-format-code.md b/docs/en/developer/developer-guide/java-format-code.md
index d6ac64bfc9..d87a97f5ca 100644
--- a/docs/en/developer/developer-guide/java-format-code.md
+++ b/docs/en/developer/developer-guide/java-format-code.md
@@ -82,5 +82,11 @@ After add the `build-support/IntelliJ-code-format.xml` file. Click `Code/Rearran
 
 ![](/images/idea-rearrange-code.png)
 
+## Remove unused header
 
+**CTRL + ALT + O --->** to remove the unused imports in windows.
+
+Auto remove unused header and reorder according to configure xml:
+
+Click `Preferences->Editor->Auto Import->Optimize Imports on the Fly`
 
diff --git a/docs/zh-CN/developer/developer-guide/java-format-code.md b/docs/zh-CN/developer/developer-guide/java-format-code.md
index 37fa3dbd6e..6896107476 100644
--- a/docs/zh-CN/developer/developer-guide/java-format-code.md
+++ b/docs/zh-CN/developer/developer-guide/java-format-code.md
@@ -80,3 +80,10 @@ Checkstyle 会按照 [Class and Interface Declarations](https://www.oracle.com/j
 
 ![](/images/idea-rearrange-code.png)
 
+## Remove unused header
+
+默认快捷键 **CTRL + ALT + O --->** 仅仅删除未使用的导入。
+
+自动移除并且 Reorder :
+
+点击 `Preferences->Editor->General->Auto Import->Optimize Imports on the Fly`
\ No newline at end of file


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org