Simple question: how do you enable word-wrap by default in Eclipse? I looked at this plugin but it only goes up to Luna. In addition, this plugin is a separate text editor and does not have syntax highlighting or validation. I'm open to other suggestions.
Word wrap is available in Eclipse Neon IDE: https://www.eclipse.org/neon/noteworthy/#_word_wrap_in_text_editors.
Just consider using the latest version.
Keyboard shortcut: Alt+Shift+Y
Or button:
Or menu Window > Editor > Toggle Word Wrap:
As pointed out by #KrisWebDev in this answer, Eclipse supports soft line/word wrapping as of Eclipse Neon but the GUI to control this setting does not exist yet. There should be a global settings to enable soft word wrapping by default in any text editor in Window > Preferences > General > Editors > Text Editors > Enable Wordwrap and it is not there.
Instead, you have to manually edit the org.eclipse.ui.editors.prefs file (.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.editors.prefs) in your eclipse workspace. There, you can add the settings wordwrap.enabled=true.
For windows this worked for me(change workspace6 if not works), open settings file
%APPDATA%\DBeaverData\workspace6\.metadata\.plugins\org.eclipse.core.runtime\.settings\org.eclipse.ui.editors.prefs
add
wordwrap.enabled=true
Related
Steps to reproduce:
Open eclipse jee.
Open any file containing text.
Error Screenshot:
Eclipse Version:
That's the print margin, which has been enabled by default in the Eclipse IDE for Enterprise Java and Web Developers (jee) 2021-06, but not in other IDE packages.
To turn it off, in Window (macOS: Eclipse) > Preferences: General > Editors > Text Editors uncheck the checkbox Show print margin.
For details see this Twitter thread.
What I have tried:
I have tried windows > IDE tools > palette
The palette editor appears in a separate window in netbeans and I simply cannot click on that or drag anything.
I have reopened my project, it doesn't work
I have restarted netbeans, gave ctrl+shift+8, yet the palette editor is not in the proper place.
Edit:
I have fixed this.
In netbeans, the procedure is windows > reset windows
Check this out. there is a Reset palette to default settings section.
Also if you mean that is on a pop-up window, try to right click it and Dock it. Netbeans allows you to reorder windows, and make them float (Alt +Shift +D) documented here.
I've installed Eclipse Debugger Plugin for v8.
When a Javascript file is brought up from the remote connection, it has a .chromium extension.
Acutal color scheme for *.chromium files is not ideal but I haven't been able to figure out how to change it.
I went into Window > Preferences > General > Editors > File Associations and changed *.chromium file association from "JS Editor" to "JavaScript Editor" (used for .js files edition, and having the color scheme I want.)
However making this change had no effect.
I have the "Eclipse Color Theme" add-on installed and am using Eclipse version 4.2.1.M20120914-1800 running on windows 7.
Once I right clicked on one of the .chromium files and selected "Open With->JavaScript Editor" that file came up with the same editor as the js files. Doing this once must have fixed something in eclipse because now subsequently all .chromium files open up with the other editor.
The Eclipse theme only seams to apply on the editor’s window and set area like Project Browser , Outline, Task windows etc seems unchanged. I have downloaded the themes form the Eclipse Market place but it has no effect. Is that the way it suppose to work or something is wrong with my Eclipse on installation.
I have manage to change the Java doc and Declaration Windows manually form the
Windows ->Presences -> Color and Fonts
Plus I have tried putting pref files in the workspace as suggested by Eric in his blog :-
http://blog.edwards-research.com/2009/10/color-schemes-for-eclipse-cdt/
and Theme generator
"blog.edwards-research.com/files/eclipse-gen/#"
My present Eclipse looks like :- http://www.flickr.com/photos/deamonm/7101439563/
I wonder how did Aptana studio manage to change in the Eclipse plugin
I think there is no way to change those part of eclipse except the editor window. You can download lots of theme from Eclipse Theme. Also note that there is a plug-in available,here . It comes preloaded with many themes. After installing, Go to **Window->preference->search for theme and choose from variety of themes.
You can use Aptana plugin for Eclipse to change almost all the panels' view:
Follow the link [Download Aptana Studio], choose "Eclipse Plug-in Version", then click on Download button. You'll be redirected to Installation page. Follow that installation guide.
In Eclipse menu select Preferences > Aptana Studio > Themes
Choose any theme that fits you the best (this will change editor view only).
Click on 3 check boxes below: Apply to all (non-Studio) views, Apply to all (non-Studio) editors, Apply editor font to views.
Click Apply or OK button.
And voila! Theme is applied globally.
UPDATE.
Unfortunately, this solutions doesn't work for ALL the panels. Some Perspectives cannot be modified by those actions.
http://marketplace.eclipse.org/content/eclipse-moonrise-ui-theme
go to this link
and follow instructions carefully!
*****Install the plugin;
Restart Eclipse and go to Window > Preferences > General > Appearance;
Select MoonRise (standalone) or, for a little better tabs decoration, install Eclipse 4 Chrome Theme from marketplace or from here and select MoonRise;*****
this must change your Project Browser , Outline, Task windows etc.
cheers!
I'm looking for a configuration or plugin for eclipse that automatically saves files (so I don't have to use Ctrl+S). It could do it on lost focus or over some period of time. I think I saw something like that (I know IDEA has it), but I cant find it now.
Update seven years later (Eclipse Neon 4.6)
Eclipse now has an Automatic Save of dirty editors
The autosave option is disabled by default.
A new autosave preference page (Preferences > General > Editors > Autosave) is available and allows to enable/disable the autosave and change the interval of autosave.
The countdown is reset on keyboard activity, mouse click, or when a popup is displayed (e.g. content assist, preference page, ...).
Original answer (2009)
The OP IAdapter added in the comments:
I bet plugin like I describe exists.
... and you are right!
Eclipse plugin saveDirtyEditor should do just what you need.
Copy the SaveDirtyEditors_1.0.2.jar in your plugin directory.
You will get a new preference page under
General > Editors > Text Editors > Save Dirty Editors
, allowing you to save dirty files like 'myfile.java' under 'myfile.java.snapshot' every 30 seconds (can be less if you want).
Without additional plugin, though, Eclipse does not support natively that feature.
The closest could be:
Window > Preferences > type "build"
> General > Workspace > [x] Save automatically before build
That way, each time you hit CTRL+B for actually building your sources, they would be saved.
But I realize this is not exactly what you are after.
Beware your option would not be very efficient with the "build automatically" option activated... (that would trigger too much builds)
Again, without achieving exactly what you are looking for, you also have:
Run/Debug > Launching > Save required dirty editors before launching
Run/Debug > Launching > [x] Build (if required) before launching
Note: the difference between IntelliJ IDEA and eclipse is the "compile on save" feature:
As mentioned in the IDEA FAQ:
Q:
Can I enable "compile on save" in IntelliJ IDEA?
IntelliJ IDEA currently doesn't support this feature.
However there is an "Eclipse-mode" plug-in which provides similar functionality, so we suggest you to try this plug-in.
Note that by default IntelliJ IDEA saves the files for you, so you don't have to press the Ctrl+S shortcut frequently like you need to do in other IDEs.
However, with Eclipse, the "build on save" is activated by default, hence the absence of that particular feature.
http://code.google.com/p/eclatosa/
"Saves all open editors in eclipse when deactivating the eclipse window (like in IntelliJ)"
No need to install more plugin.
Window -> Preferences -> General -> Workspace
and there you can check:
Save automatically before build + Build automatically
If that doesn't work try this:
Preferences -> Run/Debug -> Launching -> Save dirty editors before launching
I wrote a plugin a long time ago to do this that still seems to work: http://www.stateofflow.com/projects/71/save-me
It saves the editor when it loses focus. However, if you switch away from eclipse it doesn't notice.
Try this
Goto Eclipse Preferences > General > Editors > Autosave
if it not work then try this
Preferences -> Run/Debug -> Launching -> Save dirty editors before launching