简体   繁体   English

Android Studio:保持项目文件树状态展开

[英]Android Studio: Keep project file tree state expanded

I am using the latest version of Android Studio.我正在使用最新版本的 Android Studio。 Every time I close Android Studio or start debugging/executing the project, the "Project Files" tree collapses.每次我关闭 Android Studio 或开始调试/执行项目时,“项目文件”树都会崩溃。

Is there a setting to keep the tree expanded in the current state or to expand the whole tree again?是否有设置使树保持在当前状态下展开或再次展开整个树?

Very annoying.很烦人。 You can solve it by clicking the gear icon, and select Autoscroll from source .您可以通过单击齿轮图标来解决它,然后选择Autoscroll from source Then, anytime you select a tab, it will expand and select the file in the tree view.然后,无论何时您选择一个选项卡,它都会展开并在树视图中选择该文件。

Don't use Project Files section.不要使用Project Files部分。 Use Android or just Project sections.使用Android或仅使用Project部分。 They shouldn't collapse.他们不应该崩溃。

PS: Also Command+1 is the shortcut to open Project page. PS: Command+1也是打开项目页面的快捷方式。

This worked for me:这对我有用:

  • Expand the packages展开包
  • Click gear icon at the top点击顶部的齿轮图标
  • Untick Compact Middle Packages取消Compact Middle Packages

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 保留 Spinner Android Studio 的最后注册 state - Keep the last registered state of a Spinner Android Studio Android Studio-从“项目”文件树格式转到“ Android”文件树格式将导致仅显示“渐变脚本” - Android Studio - going to “Android” file tree format from “project” file tree format results in showing “gradle scripts” only 需要在Project Tree Android Studio上进行解释 - Need explanation on Project Tree Android Studio 替换android studio项目并保留签名 - replace android studio project and keep signature 在 Android Studio 中打开整个模块文件树 - Open entire module file tree in Android Studio Android ExpandableListView如何保存展开/折叠状态? - Android ExpandableListView how to save expanded/collapsed state? 哪里可以将我的Excel文件保留在Android Project中 - Where to keep my excel file in Android Project 我正在尝试在Windows上的android studio中运行一个基本的Android-NDK项目,但不断收到未知文件错误 - I'm trying to run a basic Android-NDK project in android studio on windows but keep getting unknown file error Android Studio中的库项目仅在嵌套在项目树中时才起作用吗? - Library projects in Android Studio only work if nested in the project tree? Android Studio 在项目 window 树中不显示文件夹 - Android Studio dosn't show folder in the project window tree
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM