---
# System prepended metadata

title: Intellij中的區塊摺疊
tags: [Intellij, JetBrain]

---

---
tags: JetBrain,Intellij
---

# Intellij中的區塊摺疊

## Region

* 程式碼
    ```java=
    //region This is title

    @PostMapping("/detail/edit/createXml")
    public void createXml(@RequestBody HashMap<String, Object> body) throws Exception {
        eWorkingXmlService.createXml(body);
    }

    //endregion

    ```

* 呈現出來的效果

    ![image](https://hackmd.io/_uploads/BJ_O86lBel.png)

    ![image](https://hackmd.io/_uploads/SJIF8alBll.png)

## Editor Fold

* 程式碼
    ```java=
    //<editor-fold desc="Services" defaultState="collapsed">
    private final EWorkingTestUseCase testService;
    private final EWorkingSubmitRecordSpecUseCase eWorkingSubmitRecordSpecService;
    private final EWorkingCreateUseCase createService;
    private final EWorkingImportBatchUpdateUseCase eWorkingImportBatchUpdateService;
    private final EWorkingDetailQueryUseCase eWorkingDetailQueryService;
    private final EWorkingMainUseCase eWorkingMainUseCase;
    private final EWorkingXmlUseCase eWorkingXmlService;
    //</editor-fold>
    ```
* 呈現出來的效果

    ![image](https://hackmd.io/_uploads/S1xZdTlHel.png)

    ![image](https://hackmd.io/_uploads/Hy1MdaxBex.png)
