How run two full-fledged window in IDEA? (or WebStorm/PyCharm/PhpStorm...) - intellij-idea

I have two windows of JetBrains IDEA (or of WebStorm or of any other JetBrains IDE) opened.
How to make the second window to be equally fully equipped as the first window?
Now, only first window is fully-fledged. Second window is missing all the "tool windows" (tool bars).
I am usually working on two different issues of one project.
So I would need to have opened the files of the first issue in the first IDEA window - and the files of the second issue to be opened in the second IDEA window.
All the files are from the same project.
(I do not need to have any file opened in both IDEA windows, usually)

The solution is in comment of #Andrey:
You can not open two main IDE windows for the same project. Only as detached editor. Why do you need it? If you are using Task management - there is a feature of Contexts that you may save and switch between.

Related

How to swap splitter windows in Intellij / PyCharm

After splitting the current editor window I navigated to the right one and then created a Scratch File. However the new Scratch File was opened in the left splitter instead.
I can not find any way to swap the contents of the splitter windows. Does such a capability exist? Otherwise how to achieve the same result: do I need to somehow close both windows and open them and in what order?
I am on: IntelliJ IDEA 2021.2.1 (Ultimate Edition) Build #IU-212.5080.55, built on August 23, 2021.
I'm using a similar build: PyCharm 2021.2.1 (Professional Edition) August 25, 2021.
What I think might be happening is that it's probably not a bug but you momentarily loose focus between the split screens when creating the scratch file. This can be hard to spot because the visual queue is subtle: carefully look at the color underlining the tab. (One of the reasons I'm posting is in case a user with visual impairments or who is color blind runs into this problem). See the screenshot:
Try choosing the tab you want and create a scratch file with the shortcut Ctrl+Alt+Shift+Insert.
I can not find any way to swap the contents of the splitter windows.
The easiest way to do this is configuring and using the Move to Opposite Group action. Another alternative is using the Goto Next Splitter action.
It's not entirely possible to fully automate the two above actions into a single keystroke to swap both tabs between the splitters, even if you record a macro choosing the last splitter requires a click.

Intellij-IDE randomly switches Project-Windows

Intellij-IDE can open multiple projects at once.
Those projects can be switched within the IDE with "Window"->"Next Project Window" and "Window"->"Previous Project Window".
Me and two other colleagues now have the problem that the IDE randomly switches the active project-window while we work. It is not clear, what actions are causing the random switch of the project window.
Is this a bug in intellij? does someone know how to prevent Intellij from this unnerving behavior?
Environment is:
Intellij-IDE Ultimate: 2020.2.2
Windows 10
The default keyboard shortcuts for these actions are Ctrl+Alt+] and Ctrl+Alt+[ on Windows.
It could be that you hit them accidently while coding/navigating which switches the project windows. It may help if you either remove these shortcuts or change them to something different and harder to press by accident.

Is possible open the same project on two instances of Intellij IDE

I have a distributed project and I need debug two nodes of my app on the same time. For this I wish open two instances of Intellij, it is possible ?
just open each one from different folder level.
For example: Project A has 2 folders (one inside another) and inside the 2nd folder there is code. Then open one instance from folder 1 and another instance from folder 2.
Open each instance by choosing open in new window..simple.
There is this topic about starting two instances of IntelliJ Start two instances of IntelliJ IDE
It is not possible with one instance from my experience
Just for new people who navigate here. You could just drag & drop the code you want outside android studio.
I found this really helpfull:
You can split the editor view vertically/horizontally, this will
display the same file in both splits, then you can drag one of the
tabs outside of the IDE to create a float editor window.
Another way to open multiple editors for the same file is to select
the file in the Project view and press Shift+Enter.
Source: Serge Baranov response in this thread
I don't think so. One easy thing you can do is open two different major versions at the same time (e.g. 2015 and 2016) or if you have Ultimate edition, you can also install community edition and have both of those open at the same time. Or if you're using community edition, you could install a trail of ultimate just this one time :)
Of course the downside to the second approach is that you may not have some plugins you need for your project.

How do I set up IntelliJ on dual monitors?

I have just installed IntelliJ 9.0.2 on a machine running 64-bit Ubuntu 10.04.
How do I get another window to put on my second screen?
I would like to have both an editor and some tool windows on both screens.
All 'windows' inside of IntelliJ other than the code editor tabs have a "Float" option which pops open an independent window which you can drag to anywhere on your screen. This will allow you to manage your IDEA windows however you like.
IntelliJ also allow you to open multiple projects at once. When opening a project with one already opened, you are prompted as to wether you would like it in your current window or a "New Instance". If you choose new instance, it will open up a completely new IntelliJ with the other project in it. This will work for you if you have many projects you work on at once.
IntelliJ 14 and onwards you can select the settings cog and tick floating mode to detach menus, or drag editor tabs off the main window to detach them
If you're running on OSX you'll need to make sure it's not treating the screens as separate spaces, otherwise they'll snap back onto the same window as the main editor when switching between windows.
To do this untick Displays have separate Spaces in the Mission Control System Preferences.
IntelliJ 10 will have draggable & dockable editor tabs. A very nice feature. It's already present in the early access versions.

How to open files in Intellij-IDEA with double click?

My first day using this IDE...
is there a way to configure the IDE to open files in the project by double click? It is rather painful having to drag files from the project overview into the editor window.
You can change the KeyMap.
Go to File->Settings and find the keymap section.
You will have to create a new KeyMap by clicking copy, and then look in the View section for "Jump to Source" and change/add the keymap you want.
However, as Bozhidar Batsov noted, double clicking may not always work so well. Whether it works may vary by OS and/or windowing system. I have no trouble with it in Mac OS X, but it doesn't seem to work well in openSUSE.
There are also other predefined keymaps that you can select from this settings screen. They're set up to resemble other IDEs, so you might find them helpful if you're transitioning from something else.
It is easy way to do in windows.
I found a great solution to this problem by Jelmer Kuperus over at Orange11.
Create an .Xresources file in your home directory. Add the following line:
*multiClickTime: 400
Jelmer explains that this setting changes the default double-click speed from 200ms to 400ms, effectively slowing it down. Save the file and then run:
xrdb ~/.Xresources
The effect is immediate, no need to logout or reboot. Double-click in Intellij works as expected. I did try changing the mouse double-click speed in System Settings first before trying this out to see if that made a difference but it did not.
I am using Ubuntu 11.04, Intellij 10.5.2, and Sun JDK 1.6.0_26. YMMV
Use F4 to open quickly the selected files. Btw double clicking on files should work as well(at least in theory). Swing's buggy handling of such events, however, causes the double click to not always work in IDEA, so I eventually stopped double clicking and switched to using F4. You can also use "Autoscroll to source" from the projects menu - this will open the source files as soon as you select them in the project browser.