Disable visual editors in MyEclipse - eclipse

What is the best way to disable all visual editors in MyEclipse?
Every time I open an HTML file, it spends a few seconds to render the HTML file in a wysiwyg editor and fails at it.
Every time I open a properties files, it opens it in a excel-like table that completely ignores the comments in the properties files.
The first thing I do is to hide the visual panel to revert to the source code.
I never use a wysiwyg editor or any design wizard. But I can only change file associations one type at a time. For HTML I have to change the assotiation for .html, .htm and .xhtml. Same for the various .xml files.
Isn't there a way to remove or disable all visual editors for good, so that MyEclipse doesn't spend time and memory on it? Maybe even uninstall them?

Right clic on File > Open With > text editor
After doing that for a file, eclipse keep this as default for the file
or in preferences, in General > Editors > File Associations set for every extension the text editor associate to it (but like you said, you have to do it for every extension, but it doesn't take so much time to do it and once you've set it, it's remembered)

Related

Notepad++ AutoSave issue

It looks like Notepad++ as of ver. 6.6.7 is now actively blocking the AutoSave (ver. 1.4) plugin.
Notepad++ will remove AutoSave when upgrading and re-loading AutoSave with the Plugin Manager now fails.
Live and die by the ability to make a quick .PHP script change and switch over to the browser window without having to remember to click on the Save file toolbar icon.
Any suggestions or alternatives?
OK, found the solution.
Rather than relying on the Autosave version downloaded by Plugin Manager, go to the link listed -- http://sites.google.com/site/fstellari/nppplugins -- and download v1.40 from there.
The zip file will have 2 versions of the dll (A for ASCII and U for Unicode ?). Copy the AutoSaveU.dll file to "C:\Program Files (x86)\Notepad++\plugins\" and you should be back in business.
Update: After running for a few days with Autosave enabled, found that automatic spell check and the ability to right click on a word or phrase would randomly disappear. Disabling "Auto Save when Notepad++ looses focus" solves that problem. For now, have decided that spell check and right clicking are more important than auto-saving.
I have found the best solution to this, if you install notepad++ and use 'Resource Hacker' (google it) to change the menu (cut it down) and the icon (change to notepad), and install the autosave plugin in notepad++, then you have something that looks almost entirely indistinguishable to classic notepad! And txt files have the notepad logo.
Also you need to go into settings and turn off a bunch of settings, including under editing tab, turn off line numbering, and change colours in 'style configurator'.
The only notable difference is that highlighted text remains black.
Check out this image to see how close it is, you could even cut and rename menu items to look identical but there is no need to be that pedantic.

.scss.erb extension syntax highlighting for scss in aptana/eclipse

If I have some eRuby in a scss file, I need to make the extension *.scss.erb. However, doing so causes the sytax highlighting for *.erb rather than *.scss. Is there any way to get eclipse to determine the syntax highlighting more intelligently or at least allow manual syntax assignment like in notepad++?
The only workaround I've found so far is to rename the file *.scss, open it, then rename it back to *.erb so it gets processed correctly later on.
There should be.
What you would do is go to Preferences > General > Editors > File Associations and set the default editor for your *.scss.erb extensions, however there's a bug in Eclipse that prevents file associations with more than one period:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=168573
The way I get around the issue is by right clicking the source file in Project Explorer and going to Open With > Other... and selecting Sass Source Editor from there.

Eclipse file associations for extensions with multiple periods

I have several Mako templates in my project that are named things like header.html.tmpl and settings.py.tmpl. I would like to add file associations to Eclipse to open these with the appropriate editors. For example, I would like header.html.tmpl to be opened in the HTML editor, settings.py.tmpl to be opened in the Python editor, etc. I go to Preferences->File Associations and I try adding *.py.tmpl to the list but after I click "Ok" nothing happens and the desired extension does not appear in the list. If I try instead using .py.tmpl I can add it to the list and add the Python editor to its associated editors but when I double-click a .py.tmpl file it doesn't use the correct editor.
Obviously it would probably work to just use -tmpl instead of .tmpl, but I'm wondering if anyone knows a way around this or can confirm that it's a bug/missing feature.
Its a bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=168573

How to programmatically reload a text editor in Eclipse?

In Eclipse, if I change a file programmatically, and it is open in a text editor, it doesn't always reload, not even when refreshing the resource programmatically. How can I forcibly reload the text editor from code so that it show the changed file contents?
In your project explorer or navigator, you can right-click on the file that's currently open and select refresh. This has always worked for me, even when editing files with several programs. Make sure to click the file itself, not parent objects like packages or folders or projects.
Edit
Refreshing programmatically? I would look into an Eclipse scripting tool:
http://eclipse-shell.sourceforge.net/
I guess there was another one called Monkey, but it doesn't appear to be maintained.
I don't know of any possibility to programmatically reload the file.
Some editors (e.g. GMF editors) look for changes in the underlying files, and refresh themselves, but this is not required at all.
I don't think that a forced reload is an option implemented globally, as in some cases there could be some merging steps involved that can be quite erroneous.
My ideas to solve this:
Have a specific editor that refreshes its content when the used resource changes (this can be timeconsuming);
Or close the editors of the file and reopen them (this is ugly in the eye of the user).
Since the Luna release of eclipse there's no need to reload files with F5/manual Refresh.
Really nice, especially as there was a bug with the F5 key binding.

How to disable MyEclipse visual HTML designer

My computer lags for several seconds when I open an HTML file in MyEclipse, or make a major change to a file that's already open. I suspect that the WYSIWYG part of the visual HTML designer is responsible; is there a way to turn that off but retain the color-coded text editor/formatter? I also don't care about the "preview" feature, if that makes a difference.
I have faced the same issue. Go to Window > Preferences > General > Editors > File Associations and pick the file extension for which you would like to disable/enable the designer. Hope that works for you.
Make Default MyEclipse Jsp Editor for opening jsp files without Visual Designer
Go to
WIndow > Prefs > General > Text Editors > File Associations
1-Click on File Associations -
2-select file type for whom you want to change Editor-
3-Select Myeclipse Jsp Editor as default
Same way you can adjust any files types Editors
adjust the default editor for the file types like .jsp, .jspf, .jspx and so on to use the non-visual editor.