Just downloaded and installed Eclipse Classic, PyDev and the Java Runtime for Windows 64 bit.
All is fine, it seems to work ok - except code folding using the keyboard.
I have tried Ctrl + Numpad-Subtract, Numpad-Add and so on, I have assigned my own sahortcut keys - it simply won't work.
Note: Code folding works when using the mouse. But I program, I use the keyboard, so I need this to work using the keyboard. Anyone have any ideas?
It is just figured out. The root cause is Eclipse by default uses the same key combinations for the standard code folding and PyDev's. So if the keys are changed to, such as Ctrl+9 for Collapse All, PyDev will collapse all code blocks without any issue.
The place to make the changes is Window>Preference>General>Keys>Python Collapse All
I'm using Texlipse to edit some LaTeX files, so it is very helpful to have the line wrap functionality. The one (the only one I found) I'm using now is Eclipse word-wrap plugin. However, the line numbers do not show correctly with this plugin.
How can I fix it?
Unfortunately the Word-Wrap plugin has this problem, as is stated at the bottom of the page you link to. There is no way around it.
This plug-in is only a quick hack to switch on the word wrap functionality of the text box widget that the Eclipse editors are build on top of, not a solid solution to the problem. Eclipse is not good with texts that need word wrap.
As Google led me here first - I will provide an update on this 2 year old question:
This issue has been solved in another plugin which is based on word-wrap:
Eclipse Word-Wrap Plug-In
Additional remark: After the installation it might be needed to run eclipse with the "- clean" parameter to enable the LineNumbering fix (mentioned here)
I need to switch to eclipse base on some errors in Netbeans with Android project.
But my problems is I like how Netbeans look and work and wonder how I can config some part of Eclipse to like more my Netbeans.
( I use eclipse 4.2.1 for Java and Android.)
The first part is, how can I config Eclipse to always show my the range of a method,
The Eclipse has same function but the range of a method is only show while I hover over the icon with the mouse. ( Also I want this to be square icons )
My other question is in netbeans while I has collaps a method I can
preview the method by hover over {...}, can I config Eclipse to do same?
I has identify a working way to show preview, you move the course to the first line on the collaps lines and then move mouse over the plus sign. But this is more work and take more time then uncollaps and collaps the lines. Is this exist a fast way to do the preview?
I'm using Eclipse for few years and I have never seen any options or ways to configure preview for collapsed code.
I prefer to use the keyboard instead of the mouse. It's much faster during development for me. I hope those keyboard shortcuts will be useful for you too:
Ctrl+9 - collapse 1 level for all blocks Edit: (PyDev specific)
Ctrl+0 - expand 1 level for all blocks Edit: (PyDev specific)
Ctrl+- - collapse current block
Ctrl++ - expand current block
For Mac use Cmd instead of Ctrl key.
EDIT: For anyone coming to this question through searching, you can install a Gnome Theme called Clearlooks Compact to shorten your tabs in Eclipse. This will free up a lot of screen space. You can also check out the answer below to learn how to make the tabs more horizontally compact.
Short version: How do I make a short version of Eclipse's tabs & toolbars in Ubuntu?
I've been looking around for a fix to this on Google, but to no avail. With any GTK theme, I still have this same issue and it's very, very annoying--to the point where I've stopped using Eclipse in favor of gEdit. However, after running pylint from a terminal too. many. times. I've decided I need to find a solution to this issues with Eclipse so I can have PyDev back. Here's what the tabs look like:
alt text http://c0496682.cdn.cloudfiles.rackspacecloud.com/big-tabs.png
As you can see, not only are the tabs exaggerated, but the toolbar is, too: so is the toolbar on the bottom; so are the tabs in the bottom pane. Overall, it's eating up a lot of screen space, which is a hard item to come by on a 17" screen. Any suggestions/fixes?
This can be solved changing your GTK settings;
gedit ~/.gtkrc-2.0
Then add this;
style "gtkcompact" {
GtkButton::default_border={0,0,0,0}
GtkButton::default_outside_border={0,0,0,0}
GtkButtonBox::child_min_width=0
GtkButtonBox::child_min_heigth=0
GtkButtonBox::child_internal_pad_x=0
GtkButtonBox::child_internal_pad_y=0
GtkMenu::vertical-padding=1
GtkMenuBar::internal_padding=0
GtkMenuItem::horizontal_padding=4
GtkToolbar::internal-padding=0
GtkToolbar::space-size=0
GtkOptionMenu::indicator_size=0
GtkOptionMenu::indicator_spacing=0
GtkPaned::handle_size=4
GtkRange::trough_border=0
GtkRange::stepper_spacing=0
GtkScale::value_spacing=0
GtkScrolledWindow::scrollbar_spacing=0
GtkTreeView::vertical-separator=0
GtkTreeView::horizontal-separator=0
GtkTreeView::fixed-height-mode=TRUE
GtkWidget::focus_padding=0
}
class "GtkWidget" style "gtkcompact"
borrowed from http://ubuntuforums.org/showthread.php?t=1465712
In addition to #Varun Mehta answer, I recommend the following tips for Eclipse 4 (Juno), whose interface is partially dictated and configurable by CSS rules:
In YourEclipseDir/plugins/org.eclipse.platform_4.x.y.v2012zzzzzzzz/css, edit:
e4_basestyle.css
e4_default.css
e4_default_gtk.css
... and adjust those files. I use the following set of tweaks:
set all the margin-* and padding to 0
set swt-shadow-visible: false everywhere you find it, to get rid of those huge shadows
set .MPartStack {font-size} to something smaller than 12
Finally, remember you can disable the toolbar. In 4.0, its state wasn't remembered across sessions, but it seems like the issue is solved in 4.2.1
Bonus resources: Eclipse4/CSS will get you started on Eclipse4 CSS, E4/CSS/SWT Mapping lists other interesting CSS attributes, and CSS Spy will help you inspect the UI.
Screenshot of what I end up with:
EDIT: see also How to remove the close (×) button from Eclipse Juno tabs?
In Addition to Ronans answer, it is possible to change the height of the tabs directly in Eclipse Juno.
edit the css file of your current style (e.g. e4_default_gtk.css) and add
CTabFolder {
tab-height: 16px;
}
Note: CTabFolder ... not add this to CTabFolder Canvas!
I too have suffered from this quite a bit, before I found the solution by changing the general appearance of my IDE.
You can try and customize the look-and-feel or you Eclipse Environment from,
Go to : Window -> Preferences -> General -> Appearance.
try setting,
Current Presentation to " Default ".
Enable " Traditional Style Tabs " (for rectangular tabs.)
Disable Animation ( if you don't like swoosh effect.)
Note: the Default Eclipse 4 just got a bit better with bug 420238 closed:
[CSS] Reduce whitespace usage in the default Eclipse themes
Before:
After:
See Lars Vogel's article about it:
If you fire up the next Eclipse 4.4 milestone build, Eclipse uses much less whitespace and leaves more space for the important content.
(That would be 4.4 M5)
While this is on a technical level a trivial change, I hope that this will improve the initial perception people have in using Eclipse.
A big thanks to Daniel Rolka, Robin Stocker and Dani Megert for doing the majority of the work and a big thanks all involved parties in the Bug report to get this change accepted.
If you really want to make the tabs nice an' short, take a gander at Clearlooks Compact.
I preferred to just hit the whole IDE with a splash of "meh," so here's what I ended up with.
Recently I have got a new 22" monitor. Finally it's possible to keep all needed windows in Eclipse open while having the main editor window wide enough to display all 120 columns. Problem now is when I wide up or narrow down windows on the left or right side of the editor. Editor's width narrows down or wides up. I'd like to set its width fixed to some value and let the other windows 'breathe' in width.
Take a look at the illustration.
You should rather use detached views, that way your main editor is not affected by the other windows resize operations.
(source: eclipse.org)
Either that, or use fast views, which minimises the views down to an icon that can be conveniently popped up when you need to use them. This is especially handy for things like the JUnit test view, as suggested by the JUnit Eclipse documentation
http://help.eclipse.org/help32/topic/org.eclipse.jdt.doc.user/gettingStarted/qs-junit.htm