简体   繁体   English

更改IntelliJ IDEA 2016中的默认工具窗口行为

[英]Change default tool window behaviour in IntelliJ IDEA 2016

Every time I open a new project in IntelliJ IDEA, the first time I open a particular tool window, for example 'Maven Projects', it appears in 'pinned' mode and remains visible until either I close it, or I go to the view settings for the window (the little cog) and deselect "Pinned Mode". 每次我在IntelliJ IDEA中打开一个新项目时,第一次打开一个特定的工具窗口(例如“ Maven项目”)时,它都会以“固定”模式显示,并且在关闭或查看之前一直可见。窗口设置(小齿轮),然后取消选择“固定模式”。 I don't want any of my tool windows to be pinned so this gets a little annoying. 我不想固定我的任何工具窗口,因此这有点烦人。

Do you know of a way to change the default behaviour of new project / tool windows? 您是否知道更改新项目/工具窗口的默认行为的方法?

As far as IJ 2016.2 I don't know about a dedicated setting for this. 就IJ 2016.2而言,我不知道专门的设置。 However I used an approach which allows you to define a default layout for all projects. 但是,我使用了一种允许您为所有项目定义默认布局的方法。 Although the window-pinning works, which is what this question is about, some may not be persisted, such as Group Modules setting in the maven tool-window. 尽管窗口固定有效(这是此问题的实质),但有些可能无法保留,例如maven工具窗口中的“ Group Modules设置。

Nonetheless, to configure the pinning, you need to do 2 simple things, which you can also see in the GIF below: 尽管如此,要配置固定,您需要做2件事,也可以在下面的GIF中看到:

1) Manually go and unpin all desired windows 1)手动转到并取消固定所有需要的窗口

2) Open the Windows menu and select Store current layout as default 2)打开Windows菜单,然后选择将Store current layout as default

取消固定窗口并将布局保存为默认设置

PS If you'll be using tool-windows that you've never opened before, or install new plugins which add their own tool-windows, just follow these steps again. PS:如果您要使用从未有过的工具窗口,或者安装添加了自己的工具窗口的新插件,请再次执行以下步骤。

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

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