IntelliJ Split Window Navigation - intellij-idea

If I split the editor window (horizontal or vertical) into N tab groups, how do I switch/toggle from one tab group to another via the keyboard? If all of the tabs are in the same group you can switch from each tab easily (CTRL + right/left arrow), but when they're in separate tab groups I can't. I've searched through the key mappings and have not found one that seems to accomplish this. I know I can use the mouse, but I'm trying to find ways to avoid the mouse and stay with the keyboard.
TIA for any help on this.

Ctrl+Tab and Ctrl+Shift+Tab for Window | Goto Next Splitter and Goto Previous Splitter. However, these hotkeys may be taken by the Switcher, so you need to remap them in Settings | Keymap.

It looks like it's now mapped to Alt+Tab and Shift+Alt+Tab so no need to remap (at least for OSX 10.5+ settings).

I had the same case and this plugin solve my problem:
https://plugins.jetbrains.com/plugin/7475-tab-shifter
https://github.com/dkandalov/tab-shifter
As I write this, here is what it support:
Move tab to another editor split
Move focus between splits
Resize the split
You may refer more details on the page/github. It works pretty well in 2019.2

I can switch the splitters with CTRL+E and then ENTER.
If you have more then 2 splits, then you can navigate or quick search in the Recent Files dialog.
Switching the splitters with the Switcher doesn't work.

Related

Konsole keyboard shortcut for switching between active Split View?

The KDE 5 terminal emulator Konsole has a great feature Split View that allows me to make full use of my big monitor. However, I cannot find a way to use keyboard shortcuts, rather than clicking mouse, to switch between the active views (see: The Konsole Handbook). This apparently reduces the work efficiency. Anyone has an idea how to enable this? Thanks a lot in advance.
What works on version 19.08.2 is Ctrl+Shift+Arrow. You can use up, down, left, right as required.
Ctrl+Tab can be used to switch between all views including in other tabs. It is like Alt+Tab of window managers that you can switch between last ones relasing the Ctrl and using this shortcut again.
You can use the shortcut Shift + Tab.
the shortcuts are called Focus (Above|Below|Left|Right) Terminal. by default they are mapped to Ctrl+Shift+Arrows.
to change these shortcuts, go to Settings -> Configure Keyboard Shortcuts -> Search for "focus".
Shift+Right/Shift+Left should work to navigate between the Konsole tabs.
shift + tab worked for me to switch across multiple tabs that are open in an active split-view screen on a Konsole application in CentOS versions > 6.x

Keyboard shortcut to switch between horizontally split windows in Intellij

I've done numerous searches to find out how to switch between two files that are horizontally split but can't seem to find it. I know that you can switch between vertically split files by using the Goto Next Splitter option, but there doesn't seem to exist an option for horizontally split. Has anyone else figured this out? Thanks!
An example of a situation where I can't switch between the top and bottom files:
I just tried this out, and Goto Next Splitter (Option-Tab on mac) works just fine for me on horizontally split panes
Note: Using CLion 2017.1.2
If you have IdeaVim installed, you can use the Control-W - J/K command to switch between Vim split panes. See also How do I switch between panes in split mode in Vim?
Use Ctrl + Tab or Ctrl + Shift + Tab to switch between opened buffers (or "file editors", if you like). If you have only two buffers like on your screenshot, you can just press Ctrl + Tab and then by pressing Enter the other editor will become focused.
Important addition:
The shortcut varies depending on your keymap. To figure out proper key combination, open File -> Settings -> Keymap and search for "Switcher" keymap in the search field.

PHPStorm move file from one split to another

I have 2 vertical splits and I would like to move a file from one split to another using the keyboard.
Is there any way of doing this?
Thanks!
Is there any way of doing this?
Yes.
P.S.
You can assign any shortcuts you want to those actions in Settings (Preferences on Mac) | Appearance & Behavior | Keymap
This question and several similar ones pop out regularly in the case of members of the IntellijIdea family of IDE's. I've seen it asked for example in the case of AndroidStudio.
Using an IntellijIdea-based IDE there is a general solution for finding any command without leaving the keyboard, and that is CTRL-SHIFT-a.
As soon as the dialog appears, in the case of this question it's sufficient to type move opp and then you can already hit ENTER to have the command executed.

Cycle through autocomplete suggestions without arrows

I'm really impressed with the autocomplete feature of the IntelliJ IDE so far.
What I'd like to do, is cycle through the autocomplete suggestions I get when hitting Ctrl + Space without using the arrow keys (↑, ↓).
The reason for this is that I prefer to keep my fingers on the home row (I'm using IntelliJ's Vim emulator additionally).
For example, how would I select sortThis instead of sorted without using the arrow keys or the mouse?
Peter Gromov's answer brought me to a satisfying solution:
In IntelliJ's settings, for Keymap → Editor Actions → Down I set a custom shortcut: Ctrl + J.
This way I can cycle forward through the suggestions.
Setting a shortcut for Down with Selection or Scroll Line Down in the IdeaVim-specific shortcuts did not affect the selection of autocomplete suggestions though.
The answer here: https://stackoverflow.com/a/9713306/2370679 led me to discover that Ctrl+n & Ctrl+p allow navigation of the auto-complete options without having to modify any settings
For macOS the IDE will give a hint that "^↑ and ^↓ will move caret up and down in the editor". These clearly do not work.
There are a few extra steps that are needed after following #matthias-braun's solution.
Here is the full list of step that I use:
Go to Preferences -> Keymap
Expand Editor Actions (not Plug-ins -> IdeaVim)
Select Down
Click the pencil icon or right-click
Select Add Keyboard Shortcut
Press the shortcut (I use ^N)*
Repeat for 3-6 for Up (I use ^P)
Click Ok**
Go to Preferences -> Other Settings -> Vim Emulation
In the drop-down under the Handler column for the row containing Down, select Vim***
Do the same thing for Up
* If you are warned about the key binding already existing then remove it. You can always reset back to the defaults by clicking the little cog icon up the very top to the right of the drop-down menu.
** The Vim Emulation doesn't seem to be populated correctly until you reopen the Preferences.
*** I'm not sure why the Handler should be Vim. This seems backwards to me but it works.
If you're able to scroll up/down in editor with some IdeaVIM-specific shortcuts, they should also work in the completion list.
In this particular case, I'd just type another "t" so that "sortThis" becomes selected (and the only) variant.
I have done the same thing with mapping the arrows but in a more logical way:
I mapped them that when I press 'Alt' 'J' is left, 'L' is right, 'I' is up, and 'k' is down. that way I can have easy access to the arrows while my fingers are on the home row and I don't need to move them nearly as much...
I'm posting it just so people who search it on google can have that idea.

How to move focus to another "tab group" in Intellij IDEs

IDEs based on the IntelliJ platform let you split the editor in various ways, but I don't see an option to move focus from one editor to another using just keyboard (something like other-window from Emacs).
Is there an "action" to do that?
For mac users, the default shortcut is option + tab
I think you're already find answer, but for someone who have same question and find this post like me.
Go to Prefernces -> Keymap or simple use search in preference and find Goto Next Splitter and make your own hotkey for this action.
Main Menu Window | Editor Tabs | Select Next/Previous Tab
There's also Switcher (Ctrl+Tab) available in the same menu as Goto Next/Previous Splitter which switches between splitted editor parts, tool windows, and many other things.
For macOS it is option + tab keys to switch between tab groups
ctrl + tab works for Windows system.