Android Studio中倒塌的定义和方法 [英] Android Studio Collapse definitions and methods

查看:285
本文介绍了Android Studio中倒塌的定义和方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我怎么能折叠的Andr​​oid 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.

我如何可以访问的Andr​​oid 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆