how to force side panels to have uniform width / size

Answered

when I switch side panels, the main editor bumps left and right arbitrarily. I want them to have same width.  (Project , structure panels etc.) 

Is it possible to modify source code to achieve this? I have a custom idea community built yesterday.

and where is the layout info saved on disk? I used Everything.exe to monitor file changes but no success..

0
5 comments

just turn of option “remember size”:

https://youtrack.jetbrains.com/issue/IDEA-293980/Tool-windows-option-to-keep-individual-size-per-window

 

Another question, how to use right-click dragging on the line-number margin to resize side panels? I'm using this trick in vscode (via javascript injection) and in visual studio (via ahk script that detects mouse cursor change).

vlog demo : https://twitter.com/KnIfER21612801/status/1729128841652875514

 I want to achieve the same effect in the community build to make it easier to resize docked tool windows.    could someone give me some advice please, the  codebase is so large..

 

 

0
The tool window layout is in the delegated workspace XML files. Each project has its delegated XML files under the workspace folder in the configuration directory.
https://www.jetbrains.com/help/idea/directories-used-by-the-ide-to-store-settings-caches-plugins-and-logs.html#config-directory

In the XML file, the layout looks like below:

```
 
   
     
     
```
0
There's a set of keymaps that can be helpful for resizing the tool windows. (Ctrl+Alt+Shift+left/right/up/down arrows)

If it's related to plugin development, it's better to ask on our [IntelliJ IDEA Open API and Plugin Development forum](https://intellij-support.jetbrains.com/hc/en-us/community/topics/200366979-IntelliJ-IDEA-Open-API-and-Plugin-Development).
0

This is more related to modifying  the IDEA itself rather than plugins. I found a way to do it. In fact, the modification is quite simple, involving less than 100 lines of code. This is because the logic for drag-and-drop is already defined in `EditorImpl.java`.

The tricky part is locating the separator bar when you right-click and drag. I took a shortcut. I saved variables for all the separator bars and then compared distances.

It works great, and it doesn't affect the original right-click menu.

my project page : https://github.com/appxmod/intellij-idea-lite

Once I learn how to package it, I'll upload an installer. I wonder if that plugin forum would be a good place to showcase my modifications?
 


 

0
You can start to investigate from https://github.com/JetBrains/intellij-community/blob/1939fde2d6e4002cb443bedc0607f16f6c767273/platform/platform-impl/src/com/intellij/ide/actions/ResizeToolWindowAction.java#L93 .

> I wonder if that plugin forum would be a good place to showcase my modifications?

Maybe not exactly what you are looking for. But for hints, yes.
0

Please sign in to leave a comment.