How switch between tabs in Output View in Nebeans with keyboard shortcuts? - netbeans

In Output View in Netbeans I have several tabs such as:
Java DB Database Proccess
GlassFish
Application (debug)
Debugger Console
etc.
I would like to switch between them using keyboard only. How to do this?

Ctrl+Tab will allow you to cycle through all panes available for your open projects, at least in Netbeans v7.3.1. You can also use the arrow keys to navigate while holding Ctrl+Tab.
Ctrl+4 will shift focus directly to the output pane.
Check out this and this for more details and shortcuts.

Related

In Eclipse IDE how to disable the closing of an editor tab via plain right-click

I am using Eclipse Oxygen (Ver 4.7.0) on CentOS with the UI shown via MobaXterm's X Windows server on Windows 7.
In Eclipse I have the weird problem that when I right-click on an editor tab the tab closes immediately! No context menu, nothing, just the tab vanishes. I would like to disable this, but I couldn't find any entry for right-clicking in the Keys section of the Preferences.
Is there another place where the right-click behaviour is set? Or how else can I disable this? The problem occurs only for editor tabs.
Additional details:
The right-click behaves correctly inside an editor tab by bringing up the context menu. This shows that the right-click is not genearlly broken in the X Window system.
The right-click behaves correctly in other X applications like PyCharm.
An explanation
A closer look revealed that Eclipse does show the context menu on right-click press-down, but on right-click release-up it registers a left-click event.
Due to the particular situation of when the context menu was drawn, the mouse pointer than just always happens to sit over the top entry in the menu. And this top entry is Close. The following screenshot might illustrate this a bit (unfortunately without the mouse pointer):
Solution
The immediate solution for me is to move the mouse after pressing the right mouse button and before releasing it.
Still I don't know why this happens only when right-clicking a tab and only for me - and probably not for many other people...

Netbeans keyboard shortcut for navigating to next error marker in editor

Is there any keyboard shortcut key for navigating to the next error (red markers created in error stripe) in Netbeans editor?
As of NetBeans 8 there doesn't appear to be a way to navigate through errors exclusively in the editor. If you look at tools->options->keymap an action does exist for this (next error in editor), but the shortcut is blank. I set it to Alt+E on my IDE, this will navigate through all annotations - not just errors. So if you don't mind cycling through all hints, warnings errors, etc, this will work.
The closest I've been able to get for navigating specifically through errors is using the action items window. Add a filter for errors, then you can use Ctrl+. and Ctrl+, to navigate through the list (see How to display all compile errors in Netbeans as a task list?).
That would be Ctrl-Period ::: (Period means .)
Links to many shortcuts:
Highlights of NetBeans IDE 8.0 Keyboard Shortcuts & Code
Templates
134 Shortcuts for NetBeans 8 (Windows)
EDITED--URLs NOW VALID thru ver. 8
Add the Action Items window to your IDE. This lists all of your errors and is dynamic, so will be updated when you save.
From the menu bar: Window->Action Items.
(Took me forever to understand why when I would save, I wouldn't see any compile errors, but then it wouldn't run.)
Actually question is about "next error in editor". At least in my configuration (NetBeans profile) this function doesn't have any shortcut by default so if you go to Tools->Options->Keymap and in search field you write "Next Error in Editor" you can add any shortcut that fits the best to you
On a Mac things are different and there is no keyboard shortcut for navigating to a usage/compile error as far as I can tell.
You can go to Help -> Keyboard Shortcuts Card to see the full list of short cuts for your platform.
See https://netbeans.org/kb/articles/mac.html for info for macs and https://usersguide.netbeans.org/shortcuts.pdf for the default shortcuts for PCs.
No. there is no good and easy way on keyboard.
just clicking on those red marks (by mouse) is the fastest way. (it's not an easy/good way. but the best possible.)

How Do I Switch Between Multiple Eclipse Windows (in "Split Screen" Mode)

Eclipse allows you to open more than one text editing "window" at a time to get a "split screen" effect. This is great, but the problem I'm having is that there doesn't seem to be any way to switch between these windows, directly.
Now, you can use the usual commands (Ctrl+Page Down, CTRL+e, ALT+RIGHT, etc.) to switch between specific buffers. In other words, if I have window 1 with A.java and B.java open, and window 2 with C.java open, I can use Ctrl+Page Down to go from A, to B, to C. However, I can't just go from A or B (ie. from window 1) in to C (ie. to window 2), unless I use CTRL+e and type in "C.java".
There are half a million Eclipse commands though, and they're certainly not all labeled consistently, so it's quite possible I'm just failing to find the relevant command. Does anyone out there in SO-land happen to know it?
By default, its Ctrl+F6. However, its useful if you map you keys to Ctrl+Tab to switch between open editors like Windows.
You can change your preferred keys in Window>Preferences>General>Keys and change "Next Editor" to any key of your choice(Ex: Ctrl+Tab). Hope this is what you needed.
This can be achieved easily if you are using Vrapper in Eclipse. Vrapper
is a Vim plugin for Eclipse. If you are trying to maximize your productivity in Eclipse like we all are, it's well worth the try.
Once you got it installed, check out the Split Editor Plugin for Vrapper. You can then create splits on the fly and switch between them using the standard Vim shortcut: Ctrl-w w
Bonus: don't forget to maxmize your editors using Ctrl-m. If your editor ever loses focus for some reason, regain it by pressing Ctrl-F12
Finally open any file in your project using Ctrl-Shift-r
Edit from anula comment:
A useful thing to mention here: Ctrl-w by default binds to closing window, so if you want to use it as in Vim you need to first go to Window->Preferences->General->Keys and unbind "Close".
You can install the HandySplit plugin from Eclipse Marketplace and bind its 'Toggle focus between split editors' command to any keyboard shortcut you like.

Mac OS tab switching in Eclipse-based IDEs

When I'm in Mac OS X, I'm able to switch tabs in my browsers and in TextMate using a Command- keybinding. If I want to go to the first tab, I use Command-1, second tab Command-2, etc.
Is there a key binding in Eclipse based IDEs that will support this same functionality?
While using eclipse on OSX, for switching tabs use the following shortcut
Ctrl + fn + Up Cursor Key for moving towards left tab
Ctrl + fn + Down Cursor Key for moving towards right tab
Here Ctrl is not Command, it is Ctrl just like other OS.
Eclipse doesn't support a tab-index-based navigation. The default editor switch key binding as noted by other responders is CTRL+F6. You can configure this to your liking (Window > Preferences > Keys: Next Editor).
Another way to switch between editors is to use CTRL+E. This presents a dialog with all open editors. You can type in the name of the one in which you are interested. This comes in handy when you have numerous open editor tabs (and Eclipse has hidden tabs it is unable to show).
As far as know the only way to switch between tabs in eclipse is CTRL+F6 and CTRL/PAGEUP, CTRL/PAGEDOWN .
In OsX CTRL become CMD .
If you want to support the OSX based approach for a TabFolder, you will have to implement this yourself. E.g via an installed KeyListener on the tab folder.
If you want to implement this for the editors in the editor area of an Eclipse based IDE, you can do it via a new command with bindings for M1+1 to M1+9... but... please note that M1+1 is usually bound to "quick fix", M1+2 is bound to "quick assist", M1+3 is bound to "quick access", etc... So you will have a conflict...

Eclipse's Visual Studio Ctrl+Tab and Ctrl+Shift+Tab Equivalent

In Visual Studio, I always use Ctrl+Tab and Ctrl+Shift+Tab to navigate between documents. I see that Eclipse has Ctrl+F6 to navigate between editors, but this isn't nearly the same behavior. The difference being, pressing it once and then again will get you moving back and forth between two files, whereas in VS, it will cause you to navigate forward based on the tab order in the editor. Any ideas on how I can replicate VS's behavior?
Looking at Keys in the preferences dialog, there are commands for "Next editor" and "Previous editor", bound to Ctrl+Alt+Right/Left.
I use Ctrl+Page up/Page down, but that might be specific to Linux because it's the same shortcut in other apps such as Nautilus and Terminal.
I just set the Next tab and Previous tab actions under Preferences > General > Keys to Ctrl+Tab and Ctrl+Shift+Tab respectively and it works just fine. Eclipse is highly customizable