how to change the view of open files list in netbeans 7.3.1 - netbeans

When I open, say a 10 or more file in Netbans 7.3.1 (windows 7), Netbeans puts each opened file's name in a a tab and all tabs are listed horizontally above the code eduitor. And at the end of that horizontal list, Netbeans provides clickable arrows (>,<,V ) to kind of navigate that list.
Since many times, the file that I want to get into is not visible in that horizontal tab list, and I need to navigate to the left or right, I usually end up clicking on the down arrow (v) and that gives me the full list of all the open files. At that time, it's a simple click to go to that file. I wish that list was available to me in a vertical fashion without an extra step.
Is there a way to see that vertical list at all times? For example, where the HTML navigator is...

I don't believe NetBeans can do this as you describe.
However, what you may find useful is Ctrl-Tab - pressing this once brings up the open file list and pressing Tab repeatedly iterates through these files. Ctrl-Shift-Tab iterates in the other direction. Letting go of Ctrl selects the currently selected file. This is similar to the Alt-Tab feature in Windows.
Hope this is useful.

Related

Split windows in Netbeans

I'm trying to split my windows so I can have 2 different classes or whatever on 1 screen but it will only split the window of the same class/file/whatever. I've been using netbeans for years and still can't do this.
Is this possible?
You don't specifically mention which version of NetBeans you are using. I'm using version 8, and these instructions work for that version and version 7. I believe it is the same for version 6.
If you want to see two different source files on the screen at the same time (without floating), then open both source files. You will have two tabs in the editing area of the IDE. Click on the tab of one of the source files without releasing the mouse button (and without holding any additional keys), and drag toward either the right side of the editing area, or toward the bottom of the editing area (depending on whether you want them side-by-side or stacked). You will see an orange outline appear once you start dragging. If the orange box encloses the entire editing area, then the IDE thinks you want to reorder the tab. Keep dragging toward the edge (without going over) and eventually you will see the orange box change to fill either the right half or the lower half (or if you drag the other way, the left half or the top half) of the editing area. Releasing the mouse button at this point will drop the source file in that half of the editing area, leaving you with the two source files side-by-side or stacked.
Here's an example of what it looks like when stacking two source files, just before the mouse button is released:
And here is what it looks like after releasing the mouse button:
If you want to have the same source file duplicated on the screen, open the single source file and follow the instructions above, only hold the CTRL key while clicking-and-dragging.
You can repeat this procedure as many times as you want (as is practical for your screen size), so that you end up with source files in several columns, several rows, or any combination thereof.
When you next open a file, it will be opened in the tab group of the currently selected source file. If you end up with a source file opened in the "wrong" tab group, just drag it to where you want it using the procedure above (allowing the orange box to outline the whole tab group area if you want to drop it in as a tab).
Additional screen shots for reference...
Reordering a tab within the same tab group:
Side-By-Side instead of stacked (two images):
Get as crazy as you want...
Create the above by dragging the second file to the lower half, the third file to the right half of the top half, and the fourth file to the right half of the lower half.
At least in netbeans version 8.1, you can ctrl + i and write "move window".
This will allow you to move the window with the arrows, it is the same as some user posted before but using the keyboard instead of the mouse (I prefer keyboard for this kind of things while I am coding).

Is there a way to set "waypoints" in an Eclipse file? Meaning

I'm working in a file that's thousands of lines of code. I'm implementing an algorithm at line 700-ish. I frequently have to navigate away from those lines to check out the other methods in the file.
Navigating back to where I'm actually coding is usually a pain. If I could set a waypoint at line 700 and map a shortcut to it that would be great. It would also be nice to be able to do this on a file level too.
Is there any way to do this in Eclipse? If not, should there be?
I don't control the file so I can't break it up into smaller files/classes.
There's a Bookmark view in Eclipse that would probably work for this.
On any line of source (at least in the Java view), right click in the left hand tray. You'll see a menu pop up and an option called Bookmark. Select that and provide some kind of useful description that you'll remember.
Now, add the Bookmarks view to your perspective.
Click on Window
Select Show View
Select Other (at the bottom)
Select Bookmarks under General (or just enter Bookmarks in the search box).
You should now have the Bookmarks view in your perspective listing your bookmarks. Duble click on one of the bookmarks and it will take you right to it.
Hope that helps.

In Eclipse, can I view the files I currently have open in a vertical stack instead of a horizontal one?

I would find it much easier if the tabs show which files are in the Editor were stacked vertically rather than horizontally. Stacked horizontally means that you run out of room to display file names very fast and makes switching between files time consuming.
Is there an option or a plugin to display the files vertically? (Similar to navigator, but for open files instead of project files) I can't seem to find one.
tabs can not be stacked vertically. However, CTRL+E (⌘+E on mac) might give you some relief.
Eclipse 3.8
CTRL+G brings up an Editors dialog as shown in this screen capture:
Eclipse 4.3
CTRL+E brings up the pop-up shown in this screen capture:
With ctrl+shift+e you can open an extra window that show you the open tabs vertically.
EditorViewer is very good
The project is dead, but it works fine with Eclipse 3.7. Just drop the .jar file in the dropins folder
http://sourceforge.net/projects/editorviewer/?source=dlp
Another command is CTRL+F6 not entirely like the other ones but great to switch between your two most recent tabs. And you also get a list of open tabs like the other examples.
you can always drag windows over each other to tile them vertically but if you see a ">>" at the end of the tabs clicking on it gives a file list which are open.
None that I know of, but there are some other tipps to make life a little easier:
1) Use Mylyn, which filters the Explorer-Views so only relevant files are shown there.
2) Have a look at "Extended VS Presentation" http://andrei.gmxhome.de/skins/index.html . This little plugin adds some useful features to reduce waste of screenspace. With it you can hide the file extension in editor tabs or limit the size of each tab and reduce the padding. Then you can remove the X and close tabs with a middle click. Each just a small saving, but they add up.
For newer versions of Eclipse, there is a plugin Open Editors which adds a view listing all open editors.
Finally a true relief!
https://sourceforge.net/projects/editorviewer/?source=dlp
Install dragging the "install" button from
https://marketplace.eclipse.org/content/vertical-tab-list
to show it
"window / show view / browsing / editors list"
On its internal menu I selected too: Sort by ext+name
Now I just need a way to hide the top tabs list and it will become perfect!

How can I go to the next Eclipse marker (e.g. build error) using the keyboard?

Suppose I make a method signature change that breaks several callers, and I want to review the call sites manually to update them.
Once I change the signature, my "Problems" view shows, say, a dozen errors.
What keys can I hit to navigate through them while leaving the keyboard focus in the editor for fast fixups?
(It's been a while, but I think the Visual Studio equivalent is F8.)
Note that this question does not duplicate Eclipse: How to go to a error using only the keyboard (keyboard-shortcut)?, as that one seeks to navigate only between markers in the current file. In this case, I want to go to the next error regardless of which file it's in.
("Marker" is the general Eclipse term for errors, warnings, etc.)
The best I've come up with so far is Ctrl + F7 to flip to the Problems view, then ↓ to pick the topmost error, then Enter to go to it (which returns focus to the editor).
Here's a way to move to the next error, regardless of editor, in one keystroke. It's not perfect, but it works until it's fixed in Eclipse.
Open a "Markers" view. Click the down arrow at the top right, and choose "Configure Contents". Uncheck the show all box, and create the view to show only the problems you want to see. You'll probably want to deselect "warnings" and "errors" as well. Save it.
Click the same "Markers" down arrow, and choose "Group By". Select "None". This is important because you don't want the parent tree level nodes to show, otherwise some of your "next" actions will take you to those, which don't represent an error.
In Eclipse -> preferences -> keys, search for "Markers". If there is not a keystroke bound to the Markers view, create one. I use Ctrl + Shift + M
Get a keyboard hotkey tool like AutoHotKey (for PC's) or iKey for the Mac. I'm using iKey, but there are plenty of other Mac tools you can use. In your hotkey tool, define an action for the keystroke you want to use for "next error". I chose the standard CMD + .
For that keystroke/action in your hotkey tool, generate 3 keystrokes in the following order:
Ctrl + Shift + M
Down arrow
Enter
Of course, you'll want to change the first one to whatever you picked for yours. You'll probably want to restrict that action to be executed only when Eclipse is the current application.
Save that, create some compile errors, and test it.
Try Ctrl + 3 for Quick access popup window.
If the "Markers view" is not already visible, then type in "markers", in the searchbox on the popup window. Once you have selected it, it should stay available, when you press Ctrl + 3 the next time around.
I just had the same problem, after refactoring some parts of code. I had a lot of errors in different files and i had to go through all of those.
I used the following solution:
Mark all (relevant) entries in the Problems view.
To do this switch to the Problems view using Ctrl+F7 and select the entries with Shift+↓/↑
You can also select all entries using Ctrl+A
Open the marked errors by pressing ↵.
Every file containing at least one marked error will be opened.
The cursor will automatically select one error/file, as if you open only this specific entry
Fix the errors in the opened file.
Here you can use Ctrl+. to navigate to next error inside this file
Close the file using Ctrl+W when your done.
Eclipse will automatically focus the next file and you can go back to step 3
In my case this solution was much faster then switching to the Problems view each time.
There's an Eclipse bug entered for this that has an attachment that looks like it does what you want.
You could use AutoHotkey:
save the mouse position, send a mouse event to click on the arrow in CDT console and then return the mouse back to it's original location. Record the mouse coords with window spy or use autohotkey's search by image function (first capture the images of two arrows with printscreen into bitmaps).

Changing number of rows of tabs visible in NetBeans

There are times when I have a decent number of source files open at once. Is there a way to change the number of rows of tabs that are visible while working in NetBeans?
Also, I have a dual monitor setup here. I could span NetBeans across the two monitors if it were possible to have multiple NetBeans editor windows open at the same time. This is something that I use in the VS Express editions. I tend to group my source files on one monitor and the designer windows in the other. Can I do this in NetBeans?
for versions 8.0.2+:
Tools -> Options -> Appearance -> Document Tabs -> Multi-row tabs
You can also maximum row count if you wish (the default is 3).
There are 2 way's I have done this:
Drag a tab from the editor panel to the side of the editor window until the red outline shows a rectangle running from top to bottom. Drop the tab there and you get another editor pane. Opening from Project or Files will still use the original panel, but you can drag tabs between the panels.
Right click on a tab and choose "Undock Window". This will create a top-level window independent of the main NB window.
When you create files with keyboard shortcuts (eg, Ctrl-N for new file) they will open in the current panel. Likewise, navigating to other files (eg, Ctrl-Shift-B for go to source).
It's not perfect though. Some keyboard actions will dump you back to the main window, then it's Alt-Tab or fiddle with the mouse to get back.
You can control the number of rows of Tabs in Netbeans by going to (on Windows):
Tools>Options>Miscellaneous>Windows> check the multi-row tabs checkbox.
See the maximum row count with the radio button and set your number.