android studio 中類似VS的代碼折疊功能Region


1. 打開android studio

2. 選擇要折疊的代碼

Group selection

 

3. 按Ctrl + Alt + T 選擇 “region .. end region comments”

Group selection dialog

Group selection dialog

4. 代碼已被 “//region” / “//endregion” 包圍, 可以看到代碼可以折疊了

Initial code region

Initial code region

5. You can now edit the description of your group

Collapsed Group with description

Collapsed Group with description

6. You can easily see the code within your group without having to expand the group, just hover the group description with the mouse pointer

Group code preview
來源:


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM