Android Studio中倒塌的定义和方法 [英] Android Studio Collapse definitions and methods
问题描述
我怎么能折叠的Android Studio编辑器中的所有定义和方法?
How can I collapse all definitions and methods within the Android Studio editor?
Visual Studio中对这种选择编辑 - >大纲
,但我找不到Android Studio中类似的功能。我相信这个功能的存在。
Visual Studio has that option on Edit-->Outlining
, but I cannot find a similar feature in Android Studio. I am sure that this feature exists.
我如何可以访问的Android Studio的概述功能?
How can I access Android Studio's outlining feature?
推荐答案
这就是所谓的折叠
Android Studio中。
It is called Folding
in Android Studio.
首先要确保它在配置(这应该是默认的)运行。转到文件
- > 设置
,那么 IDE设置下
区域找到编辑 - > code折叠
,检查显示code折叠大纲
。
First make sure it is enabled in config (it should be by default). Go to File
-> Settings
, then under the IDE Settings
area find Editor -> Code Folding
, check the Show code folding outline
.
要折叠/展开项目使用 code
- > 折叠
菜单
To collapse/expand items use the Code
-> Folding
menu.
编辑:结果
要定制这些开放设置中的键盘快捷键(文件
- > 设置
),然后选择键映射
在 IDE设置
。现在键入折叠
在搜索框中(右上角)。设置键盘快捷键的各种折叠动作:)
To customize the keyboard shortcuts for these open Settings (File
-> Settings
) then select Keymap
under IDE Settings
. Now type folding
into the search box (top right). Setup the keyboard shortcut for the various folding actions :)
这篇关于Android Studio中倒塌的定义和方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!