Intellij navigating between editor tabs/splitters does not work? - intellij-idea

I am editing with two vertical tabs. The
Window | Editor Tabs | Goto next splitter
has no effect - the editing cursor remains in the present Editor Tab. For curiosity's sake I also tried "Goto previous splitter" - that also has no effect.
Is there something I am missing here? Any other shortcut / method to use keystrokes (not Mouse!) to navigate between Editor Tabs?
Note: Ctrl-E is not reliable for this - it sometimes goes to different documents in the same Editor Tab.
UPDATE
Apparently the editor "sort of" changes splitters: the titlebar and the Navigation panel change to the file in the other splitter. But the cursor does not move! The cursor stays in the original place - in the original splitter/editor tab! So then what the heck use is it to change splitters - I can not edit or navigate in the new splitter!

There are at least two other ways to do similar things as "Goto next/previous splitter".
You could try the "switcher" (Ctrl-Tab, OS X & Win) to switch between specific files.
Similarly, you can try the "Recent Files" (Ctrl+E, Win; ⌘E, OS X)
But whatever is causing the cursor to not follow the "Goto next/previous splitter" might make it not follow these options, either...

Related

Navigate to the changed line of code in a file in Intellij Idea

I have a huge class in which I changed couple of lines in different places. Is there a way(shortcut) to navigate through changed lines of code in the file and not to scroll all the way up/down?
If you edit a file that is under version control, IntelliJ IDEA provides several ways to move back and forth with the updates. In particular, you can use the navigation commands (Navigate | Next / Previous Change.), keyboard shortcuts (⌃⌥⇧↓/ ⌃⌥⇧↑), and the change markers.
To navigate to the place of your last edit, press ⌃⇧⌫ or select Navigate | Last Edit Location from the main menu.
https://www.jetbrains.com/help/idea/navigating-through-the-source-code.html#20c948f4
I'm using Control + Alt + Left|Right Arrow for current KeyMap
Refer this screen-shot for your reference in case you are having different mapping.

Navigate (switch) between 'Find' and 'code preview' in IntelliJ IDEA

Hi I have to make a lot of searches in InteliJ and I want navigate between findings of searched text and code preview of specific file.
I tried to search it on web, and also combination of shortcuts like tab, ctrl+tab and many more but nothing work.. Do you know how to switch between those two windows?
right now I have to click it with mouse to focus on one of the windows.
The code preview window is intended to be used as exactly that - a preview, not a UI to be used for complex editing operations. If you need to do anything with the search results, use the "Open in Find Window" button to open the toolwindow with the results. After that, you can use for example Ctrl+Alt+Up/Down to navigate between the occurrences, or other keyboard shortcut to switch between the toolwindow and the editor.

How to switch only between editor windows (not tabs) in split mode

I frequently use the split editor window where I have some files in the left window and some in the right. How can I easily switch between these windows using only the keyboard?
There is a mapping on Ctrl+Tab that invokes the switcher. This however only works good if you have exactly one file open in each of the two windows. If you have more than one open Intellj Idea also wants to switch between the open tabs.
What you want is "Goto next splitter" and "Goto previous splitter" under the menu "Window > Editor Tabs". On Mac OS X, they have predefined keyboard shortcuts:
Mac ⌥⇥ (option, tab), ⌥⇧⇥ (option, shift, tab)
However, Windows does not have pre-define keyboard shortcuts, so you will have to make them yourself in "Preferences > Keymap" and assign your own short cut.
The trouble is finding one that does not conflict with an existing mapping; I've set mine to:
Alt+Shift+> for "Goto next splitter"
Alt+Shift+< for "Goto prevous splitter"

IntelliJ Split Window Navigation

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.

Enabling tabs in xcode? Or lessening the pain of not having them?

I am currently using xcode and I find it's lack of tabs quite disturbing.
I currently use command-shift-d to search through all the files, or ctrl-1 to open the history of files that were recently opened.
It works but I find it less effective than just tabbing through the few files i am currently working on.
Is there any way, third party or not, to enable some sort of tabbed organization?
If not, is there any other way to quickly navigate through a subset of files?
XCode 4 now supports tabs. You can enable by selecting "View / Show Tab Bar" menu.
Not really, but one alternative is View > Show Favorites Bar and drag five or six frequently-used source files into it. Not as flexible as tabs but satisfies your request for "quickly navigate through a subset of files".
The traditional way is to use the detail view. Get the files you want in the Detail view by one of these means:
Put them all in the same group, then select the group
Enter a filter expression in the Search Bubble that narrows the items shown
Define a Smartgroup that includes just the files you want
Get a list of the files as a Find in Project result, then select that item in Find Results
Then you can use the Detail View as your list of interesting files and navigate through it quickly with the up and down arrows.
First of all, you can use Textmate (which I believe has Xcode integration). Otherwise:
Window (Menu) -> Organizer (ctrl-command-o)
At the bottom of that window, if you don't have two panes, click the square to the right of the gear. Now drag code files of interest to the left, grey pane--a single click or arrow up/down will open the file in the editor pane.
If you do open a bunch of windows, as vog suggested, you'll need to command-~ through them--not alt-tab.
Cheers.
The Xcode source code editor allows you to choose the file from a list. It's two clicks instead of one (as it would be with tabbing), but it's better than nothing.
In addition, you can simply Alt-Tab through your open source code windows. This is not slower than tabbing, and has the same effect since the source code windows are usually placed exactly one in front of another.
You'll definitely want to read through this. (XCode Tips and Tricks you wish you know about two years ago - SO)
You can navigate between files using "Recent Files"
Write simple applescript:
tell application "Xcode"
tell application "System Events"
keystroke "1" using {control down} -- open "Related Files"
key code 125 -- choose "Recent Files" ("keystroke down" doesn't work)
keystroke return -- enter to "Recent Files"
key code 125 -- choose previous file
end tell
end tell
And bind it to some shortcut using for example FastScripts(free up to 10 bindings)
I have this script on "Control" + "`". (XCode 4)
Hope this will help
You may also try an Xcode plugin I've just released - it's called Code Pilot and solves a lot of issues of Xcode's navigation, making it more TextMate/Eclipse-like.
Check it out here: http://macoscope.net/en/mac/codepilot/
I hope this helps!
It is simple with XCode 7.2
GoTo View>>Show Tab Bar
This will show the tab bar.
RightClick on the New Tab and click -->"NEW TAB"
Then We can see all the files in tabs.