简体   繁体   English

如何在 Intellij Idea 中保存窗口位置

[英]How to save window position in Intellij Idea

When i open File structure Dialog (that can he opened at Ctrl + F12 shortcut) in the start position on my monitor i have a problem.当我在显示器的起始位置打开文件结构对话框(他可以用Ctrl + F12快捷键打开)时,我遇到了问题。

I try drag and drop this window to my comfort position.我尝试将此窗口拖放到我舒适的位置。 After that i close him ( i think that helps, but it's not)- the dialog showing up in start position , not in position related on my decision .之后我关闭了他(我认为这有帮助,但事实并非如此)-对话框显示在开始位置而不是与我的决定相关的位置 How i can save my dialog position?如何保存我的对话位置? Because it's so irritation.因为太刺激了。

The following worked for me on Android Studio 2.2.3, but should do for IntelliJ IDEA:以下在 Android Studio 2.2.3 上对我有用,但对 IntelliJ IDEA 应该适用:

On the menu bar: Window > Store Current Layout as Default在菜单栏上: Window > Store Current Layout as Default

+ Update ( 2017 - Sep - 24 ) + 更新(2017 年 - 9 月 - 24 日)

When using Windowed Mode the above failed.使用Windowed Mode ,上述失败。 So I had to do the following.所以我不得不做以下事情。

First, choose what Tool Window you be setting up.首先,选择您要设置的Tool Window For example 1: Project .例如1: Project

  1. Left -click the item to show it左键单击该项目以显示它
  2. Right -click the item and select Windowed Mode右键单击该项目并选择Windowed Mode
  3. Choose the window position that you like选择您喜欢的窗口位置
  4. Left -click again, to close it.再次左键单击以关闭它。
  5. To make sure, left -click again, to open it.为了确保,再次左键单击以打开它。
  6. Finally, select on the menu bar Window > Store Current Layout as Default最后,在菜单栏上选择Window > Store Current Layout as Default

Restart the IDE to check, but it should work.重新启动 IDE 进行检查,但它应该可以工作。

This was tested on AndroidStudio 2.3.3 and IntelliJ IDEA 2017.2.4 with 2 monitor screens (displays).这是在AndroidStudio 2.3.3IntelliJ IDEA 2017.2.4上测试的,带有 2 个监视器屏幕(显示器)。

As of now 2020 September you can do this via creating a new branch in git for the same project.截至 2020 年 9 月,您可以通过在 git 中为同一项目创建一个新分支来执行此操作。

So lets say you have Branch A to use view/setup for one task.因此,假设您有分支 A 为一项任务使用视图/设置。 When you create branch B you can then change this view/setup, because when you switch back to branch A, your setup there (which window is on left/right, etc.) will be restored.当您创建分支 B 时,您可以更改此视图/设置,因为当您切换回分支 A 时,您的设置(哪个窗口在左侧/右侧等)将被恢复。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM