How do I set up IntelliJ on dual monitors? - intellij-idea

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.

Related

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.

Highlight file opens up file in a preview window functionality instead of double click

Coming from a Visual Studio environment and Xcode environment, if you highlight a file on the project window (LHS), the file opens. IntelliJ doesn't open a file until you double click it.
It's kind of a different feel since it opens it up in a new tab each time vs just using the last active window or a preview window to flip between files. Is there a way to make it more like VS or Xcode that where highlighting the file actually opens the file in the current window?
There is Autoscroll to Source option in the project view settings. Unfortunately it doesn't open the focused files in the current tab, but in new tabs.
I haven't found an option to change this behavior anywhere, but there is already a feature request on IntelliJ's YouTrack asking for this, so feel free to vote for it :)

Managing IntelliJ Tool Windows, how to

Currently my IntelliJ shows amongst other things
How do i decide
What tool windows are shown
Where they are shown
Those things are called Tool Windows, and you can find them at View > Tool Windows.
To disable some of them, you can install the plugin ToolWindow Manager and disable one by one.
You can enable/disable all tool windows in Settings > Appearance > Show tool window bars
You can find more information about them here.
These are called "Tool Windows". If you right click on them it shows a menu that at the bottom has a "Hide" option. I notice some of them can't be hidden, but you can drag them to other places that are out of your view. For example, you can drag them from the bottom to the side. You can also drag to answer your second question.

Short cut in Xcode to switch between help and IDE

I'm new to the XCode IDE, Mac and IOS programming. Means that I'll swap a lot between help and editor. However when using Cmd+Tab I'll not swap between help and IDE but between other open apps.
Does anyone know a short cut to switch between IDE and help?
OPT+Cmd+? will bring the help in XCode (the shortcut is mentioned if you go to the help section)
use 1. in combination with CMD+' to scroll through all open projects / windows within XCode.
You can have a look to this page: it refers all XCode shortcuts and gesture.
The default shortcut to open the Organizer is Cmd+Shift+2, which you can edit in the Preferences of Xcode if you want.
There is also a shortcut which will directly bring you to the Documentation tab: Cmd+Alt+?.
Additionally, you can set a shortcut to switch between the windows of the active app in System Preferences → Keyboard → Keyboard Shortcuts. The default is Cmd+< but I prefer Alt+Tab.
Command-Option-Shift-/ (a.k.a. Command-Option-?) will bring up the documentation window.
Also, you can cycle between windows within an application with Command-` (works in any application). You can use that to switch easily between a project window and other open windows, including the documentation window.
Command-Tab cycles between applications, not windows.
Note that the keyboard shortcut for a given menu command will be displayed in the menu along with the command (this is true for any application):
If you are on Mountain Lion (not sure if it works on earlier versions), you can also use the 4 finger scroll (Mission Control shortcut) if you prefer. With the Organizer (help) open, use 4 fingers and swipe upwards to reveal mission control. On top you'll see virtual desktops. Drag and drop your Organizer/help window onto the second desktop. Now you can flick right or left with 4 fingers on your trackpad to switch between code view and help. I know this sounds complicated but once you get used to it, it becomes second nature. But yeah Cmd + ~ is good too.

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.