Skip to content

Commit

Permalink
feat: 新增Eclipse&IDEA导入配置同步 (#82)
Browse files Browse the repository at this point in the history
Signed-off-by: unknowIfGuestInDream <liang.tang.cx@gmail.com>
  • Loading branch information
unknowIfGuestInDream authored Jul 5, 2023
1 parent d69be97 commit 3e962ab
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
Binary file added docs/images/eclipse/eclipse25.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/eclipse/eclipse26.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions docs/springBootDemo/basic/Eclipse.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,3 +178,13 @@ Window > Preferences > Java > Code Style > Formatter,点击图片中的New.(ec
* 块注释[Enable block comments formatting]

![](../../images/eclipse/eclipse24.png)

### Eclipse设置Organize Import, 与IDEA同步
在团队协作中,必须统一Import的组织格式,避免因为eclipse,idea各自不同的导入顺序造成代码经常性变更,导致相互合并代码出现不必要的冲突。
因为这边以idea的导入规则为准,所以eclipse必须参照idea的导入规则进行相应的修改。

IDEA导入规则
![](../../images/eclipse/eclipse25.png)

修改eclipse导入规则
![](../../images/eclipse/eclipse26.png)

1 comment on commit 3e962ab

@vercel
Copy link

@vercel vercel bot commented on 3e962ab Jul 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.