Eclipse hangs when working with XML's ..
the default editor is too slow and gives lot problem
I read, it works fine if we change the editor so how to remove existing editor ??
You can customize them: Window -> Preferences -> General -> Editors -> File Associations
There, you'll have to either select a file extension,
or add one to the list and choose what editor eclipse should use
to open it with whenever it's needed.
To just open the file once,
Right Click - Open With
To change association,
Windows - Preferences - General - Editors - File Associations
Related
I have an Excel file in the directory of my Eclipse project. When I double-click that file in the Package Explorer, Eclipse opens an instance of Excel as a new tab inside its editor window to the right.
Unfortunately this seems to be quite a buggy setup if there is another instance of Excel open outside of Eclipse:
I can't bring the other instance into the foreground and thus I can't use it any more
Excel lost a bunch of changes that I saved inside the editor window in Eclipse
So, I would really like to prevent Eclipse from opening Excel- (and possibly other) files inside a tab of the Eclipse editor. They should always open in a separate program (just as if I had opened the file from Windows Explorer). Is this possible?
Go to Window >> Preferences >> General >> Editors >> File Associations, click 'Add' right to the File Types list, add .xls, OK.
Now select .xls from the list, click 'Add' right to the Associated editors list, select External Programs Check Box, select Microsoft Excel, OK.
You can tell Eclipse to open Word, Excel, PDF etc. with the default external Editor in general, without adding *.doc, *.docx, *.xls, *.xlsx etc. to the File Associations:
Window => Preferences => General => Editors
Uncheck "Allow in-plcae system editors"
Source: "Prevent in-place OLE editors" of Eclipse Tips and Tricks
Right click on Excel file -> Open With -> System editor
After the first time, Eclipse will remember that that Excel file needs to be opened with the system editor.
Is there a way to have Eclipse automatically open/preview files as I select them in Project Explorer? I know I can double-click, but I want to quickly arrow up/down as I explore a project.
I am essentially looking for something like Mac Finder's Quick Look or Windows 7 Explorer's Preview Pane. IntelliJ IDEA has this functionality also and calls it "Autoscroll to Source".
Eclipse has "Link to Editor" but that works the reverse of what I want (what IntelliJ IDEA calls "Autoscroll from Source") - it updates the Project Explorer from the editor. I want the editor to update from the Project Explorer.
Window -> Preferences -> General -> Open Mode (single click)
This option open new source file in new editor tab. To disable this, and keep only one active editor tab, use:
Window -> Preferences -> General -> Editors ->
Select checkbox 'Close editors automatically' ->
Set 'Number of opened editors before closing' to 1
I think combining mishadoff's suggestion of single click open mode with "Open when using arrow keys" exactly answers OP's question:
Window(or Eclipse on Mac) -> Preferences -> General:
(I am using Juno version)
I know I'm not the first to need this. I am working on an in house created codebase and I would like to apply highlighting to it within Eclipse. In Notepad++ I can set language for the file I'm looking at. Is there any way to do this for Eclipse?
The code I'm working on would use the same syntax styling as C++.
Your best bet is to go to Preferences -> General -> Editors -> File associations. Add the file extension of the thing you are trying to open and add the C++ editor as the associated default editor.
If there is no file extension, then things are a little harder. Instead of double-clicking to open the file, right-click -> Open with... -> other -> C++ editor. This will remember your choice for that file only.
As Andrew Eisenberg said, go to Window --> Preferences --> General --> Editors --> File Associations and ensure your choices for editor for each file type are correct according to your desires.
However, for Eclipse CDT most of your file types are set in Preferences --> C/C++ --> File Types instead.
Also, like he said, you can use the right-click menu to choose your own editor, including an external system editor, such as Sublime Text 3, Atom, Visual Studio Code, Notepad++, etc.
Right click on the file --> Open With --> Other... --> choose an "Internal editor" or "External program" to your liking, optionally checking the box at the bottom to make this the default choice next time.
I'm using the HTML editor resp. the Structured Text Editor in Eclipse. It always opens in the tab Visual/Source:
Is it possible to tell Eclipse it should always open this editor in the Source tab?
You seem to use a plugin which associates with HTML files. For example Eclipse normally loads XML files for the first time with Design tab, and once you switch to source tab, it remembers the next time to open any document associated with XML Editor in Source tab. I don't know remembering is up to Eclipse or up to the plugin associated with the file, but a quick workaround would be:
to right click on the HTML file in package explorer > Open With > choose another editor (e.g. text editor). This only associates with current file. If you want to change file association for all HTMLs:
goto Preferences (under menu Window) > General > Editor > File Associations and change HTML file association there.
In Eclipse goto Windows-->Preferences-->Type Editors change the associated editors for File Types after that click on OK
You didn't say what version of Eclipse you're using. My HTML / Structured Text editors didn't have the tabs the same as yours. I'm using 3.4.2.
You can extend that editor by writing your own plug-in for Eclipse. Outside of the 'create a plug-in project' stuff, start by finding the extension points for the target editor. Then your plug-in can just register as an extension and add a new property instead of writing a whole editor. The property should show up on a preference page and then your code can take care of switching the active view of the editor to the 'Source' tab based on that property.
Right click the file and then "open with" and open it in another HTML or texteditor.
And then map this editor as the default editor for this filetype by right clicking the document and setting the file extension.
I always do this to get rid of the memory greedy WYSIWYG editors.
I have many types of file in my eclipse workspace, so i want some files to be open in a particular editor. say a war or a jar with winrar. sql with some eql developer, xml,s with xml editor etc how to set that? so that whenever i open them, they should open a assigned editor.
there is an entry in the eclipse preferences that associates file types with editors. You select your file type (e.g *.html) and assign it one of your installed editors.
On Mac OS, the preference you want is:
Preferences -> General -> Editors -> File Associations.
Goto
Window-Preferences
then
General->Editor->fileAssociations navigation
then
select or add the extension in the right top dialog
then click add on the right bottom dialog, select the appropriate application and save :-)
You want to add an entry in the Preferences for General->Editors->File Associations.