Android code folding the Switch block

纵饮孤独 提交于 2019-12-10 03:09:03

问题


Under Android Studio 1.0.2 is there a way to fold the block of code for a Switch conditional statement? I could not find how to do it online or in File > Settings.


回答1:


Select the code block and right click to choose fold code block (it "says" Ctrl-Shift-Period but Ctrl-Shift-Period doesnt really do it....)




回答2:


To fold an arbitrary selected block

  1. Select contiguous fragment of code in the editor.
  2. On the main menu, choose Code|Folding|Fold Selection/Remove Region, or press Ctrl+Period

Source: https://www.jetbrains.com/help/idea/2017.1/code-folding.html



来源:https://stackoverflow.com/questions/28533279/android-code-folding-the-switch-block

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!