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
- Select contiguous fragment of code in the editor.
- 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