Every time I create a new workspace in Eclipse I have to turn off the spell checking via Preferences. (Preferences->General->Editors->Text Editors->Spelling->Enable Spell Checking)
This is very irritating. How do I turn off the spell checking for good? I.e. the spell checker is disabled when I create a new workspace and I can turn it on should I want to use it.
It's not a perfect fix, but you can copy existing workspace preferences into any workspace. I keep a separate .epf (Eclipse preferences file, I guess) that I just import into every new workspace I create:
File → Import... → General → Preferences → Next > From preference file
Related
Importing/Exporting Project Preferences
Preferences->General->Editors->Text Editors->Spelling
Uncheck the box "Enable spell checking"
There are some ways for sharing preferences, but it doesn't come with the platform.
The one I use is now available as an attachment to https://bugs.eclipse.org/bugs/show_bug.cgi?id=334016 or more particular as attachment https://bugs.eclipse.org/bugs/attachment.cgi?id=196866
Install into your Eclipse.
Then you can export selected preferences to an .epf file.
Also add a preference (!) in Preferences > General > Common Preferences which will share your settings across newly created workspaces.
I use this all the time and though it is not perfect, it does save a lot of effort in keeping my preferences aligned across workspaces.
If you are writing Java code, Window -> Preferences -> Java -> JDT Spelling
Related
I installed Ubuntu 15 new and I installed eclipse Mars.
Now, I want to have the syntax highlighting exactly like in visual studio, so i downloadet the .epf here http://eclipsecolorthemes.org/?view=theme&id=23347 and imported it into eclipse.
Until here, I have no problems, but when I restart eclipse the highlighting will reset after 5 seconds to default.
I don't know why, but when I start eclipse via sudo, I don't have the problem. I have no more ideas...
I saw, that eclipse run this on startup:
http://pastebin.com/6YGVxfhU
I dont know, how i can stop it
To disable all Oomph startup tasks
In preferences, choose Oomph | Setup Tasks. Then check the Skip automatic task execution at startup time.
To disable which preferences Oomph tracks
In preferences, choose Oomph | Setup Tasks | Preference Recorder.
Check the Record into: checkbox.
In the table uncheck the preferences you don't want synchronized. For your case it is probably the set of /instance/org.eclipse.ui.workbench/[...].
(Optional) Click Open the recorder target file button and fully edit your preferences.
If you want to use Oomph to track your syntax, you can import the .epf file into the preference recorder:
Open Window > Preferences and go to Oomph | Setup Tasks | Preference Recorder
Make sure Record into is selected and whichever profile you want to record to is selected (probably User.) Open the recorder file using the button next to the dropdown.
A .setup file will open in the editor. Close the preference window. An Oomph toolbar should have appeared. The third button is Import Preferences.
Oomph - Import Preferences Button
Click it, browse to your .epf file and open it. Move whatever preferences you want to import from Available Preferences to Selected Preferences and click OK.
The preferences will be added to the .setup file, under the root node (probably User.) Drag them into the User Preferences node (the first child node with the folder icon) and delete any existing nodes with conflicting names (it won't combine them.)
Save the file.
You should now be able to restart Eclipse and have Oomph load in your correct syntax coloring.
Answer from this eclipse forum post with a few extra steps I had to do to get it working.
I'm using the Spring Tool Suite, which I think is based on Eclipse 3.7.2
I set a number of syntax color coding preferences in Java and XML in mycopy of Eclipse at work. I then exported my preferences to a
eclipsePrefs.epf
I just tried importing my preferences into my copy of Eclipse at home from
eclipsePrefs.epf
There were only checkboxes for the Java preferences, not the XML syntax coloring or other preferences. I tried "import all". No dice.
How can I move all of my color coding....and other, preferences between copies of Eclipse?
Have a good weekend
Steve
All settings are stored in a folder called .metadata (hidden) in the current workspace. There is a plugin folder within with settings and preferences for each plugin, including the core of Eclipse.
Please see this guide: http://eclipse.dzone.com/news/create-new-eclipse-workspace-w
How can I apply Eclipse preferences to all Eclipse workspaces?
For example if I go:
Window -> Preferences -> General -> Keys -> Add a Shortcut
I would like to use that shortcut in all of my Eclipse workspaces (different projects). Is there a way to apply preferences to all workspaces?
I would also like to configure what perspectives come up by default when I start a new workspace.
If you want preserve all your settings, simply copy the
.metadata/.plugins/org.eclipse.core.runtime/.settings
directory into your desired workspace directory
You can also export the preferences you set in the template workspace and then import them into other workspaces. This is the preferred method supported by Eclipse.
Go to
File->Export then choose General->Preferences
click Next then select the “Export all” radio button and fill in or browse to a file path where you want to save the preferences . Click Finish and your preferences are exported to that file.
Select
File->Switch Workspace,>… to switch to a different workspace.
When Eclipse restarts in the new workspace select File->Import then General->Preferences click Next and browse to your saved preferences file and click Finish to import your preferences into the current workspace.
I would like Eclipse to automatically save every time I edit a file, in much the same way that it builds automatically. Because I've been using IntelliJ for the last year (which saves automatically by default), I keep having the following problem:
Make some changes in Eclipse
Forget to press save
Run the build, unit tests, and notice some strange behaviour
(Some time later....) realize that the unexpected behaviour occurred because I forgot to save the changes
Is there any way I can make Eclipse save automatically?
Eclipse Neon (4.6)
Window > Preferences
General > Editors > Autosave > check Enable autosave for dirty editors > choose the value for autosave interval (in seconds)
Details in M7:
Auto-save of dirty editors is now available in Eclipse. 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, ...).
You can go here and check the box Save automatically before build
Windows > Preferences > General -> Workspace
First, try Window -> Preferences -> General -> Workspace. There you can check "Save automatically before build" and "Build automatically."
If that does not work,
PLEASE TRY
Preferences -> Run/Debug -> Launching -> "Save dirty editors before
launching"
You can do it with the saveDirtyEditor plugin as referenced in this question/answer. There is no non-plugin way of doing it.
I wrote an Eclipse plugin for this called smartsave. It's available in the Eclipse Market Place.
It saves your files at a specified interval and you can even tune it to prevent saving if errors, or warnings, are present in the preferences dialog.
In Helios this can be done by going to preferences and setting:
Run/Debug > Launching > Save required dirty editors before launching
For Eclipse Mars 2, the settings are below Window > Preferences > General > Workspace. These settings are in minutes and not in seconds.
You could go to Windows > Preferences > Autosave and set the auto intervals to 1.
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