一个项目的 Android Studio 多窗口

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/22410029/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-20 05:56:27  来源:igfitidea点击:

Android Studio Multi-Windows for One Project

androidandroid-studiomulti-window

提问by ElectronicGeek

I'm wondering if anyone knows how to open two windows of Android Studio with both having the same project. I know you can drag tabs out, but that allows you to only edit that one file. I want two fully-featuredwindows with each being able to see the Project Files/Structure.

我想知道是否有人知道如何打开两个具有相同项目的 Android Studio 窗口。我知道您可以将选项卡拖出,但这仅允许您编辑该文件。我想要两个功能齐全的窗口,每个窗口都能看到项目文件/结构。

I don't want to just split the editor, I want a separate window.

我不想只是拆分编辑器,我想要一个单独的窗口。

I want two of these windows, with both "looking" at the same project: enter image description here

我想要两个这样的窗口,都“看”同一个项目: 在此处输入图片说明

I don't want another one of these windows, as I can't view the project structure and change that, and it's hard to change it to a different file in this view: enter image description here

我不想要这些窗口中的另一个,因为我无法查看项目结构并更改它,并且很难在此视图中将其更改为其他文件: 在此处输入图片说明

回答by Marco Acierno

Right click on tab of the file and click "Split vertical / Horizontal"

右键单击文件的选项卡,然后单击“垂直/水平拆分”

enter image description here

在此处输入图片说明

After splitting, you can just drag one of the tab titles to the second monitor - it will open up a new window. You can then edit the same file in two separate windows

拆分后,您只需将选项卡标题之一拖到第二台显示器上 - 它会打开一个新窗口。然后您可以在两个单独的窗口中编辑同一个文件

回答by Jacob McKay

If you click and drag a file's tab out of your current window (over onto the desktop, for example), the file will open in a new window. However, this window doesn't seem to have the whole package explorer, console etc.

如果您单击并将文件的选项卡拖出当前窗口(例如,拖到桌面上),该文件将在新窗口中打开。但是,这个窗口似乎没有整个包浏览器、控制台等。

Although, if you click on the gear on any of the modules, you can uncheck 'pinned' mode and you'll be free to move them around your two monitors just like the window you created above.

但是,如果您单击任何模块上的齿轮,您可以取消选中“固定”模式,并且您可以像上面创建的窗口一样在两个显示器周围自由移动它们。

回答by Marcola Carr

Window -> Editor Tabs -> Split Vertically

窗口 -> 编辑器选项卡 -> 垂直拆分

if you don't use files tabs

如果您不使用文件选项卡

enter image description here

在此处输入图片说明

回答by Fesswood

If you want to split tabs of android studio project beetween monitors, you can rigthclick to tab(project, debug, terminal etc) and check the "floating mode" option.

如果要在监视器之间拆分android studio 项目的选项卡,可以右键单击选项卡(项目、调试、终端等)并选中“浮动模式”选项

See the image: Floating mode tab option

查看图片:浮动模式选项卡选项

After that you can drag this tab between your monitors as new window.

之后,您可以将此选项卡作为新窗口拖动到您的显示器之间。

回答by Andres Diez

Just drag the tab outside the current window.

只需将选项卡拖到当前窗口之外。

回答by Taha khozooie

right click on tab and click on windowed mode, it will open up a new window.

右键单击选项卡并单击窗口模式,它将打开一个新窗口。