Search code examples
eclipsejspeditormacvimeclipse-mars

Installed MacVim, and now Eclipse is opening JSP files in it when i don't want it to


I'm using this version of Eclipse

Version: Mars.2 Release (4.5.2)
Build id: 20160218-0600

on Mac Sierra. I just installed MacVim and now whenever I try and open a JSP file within Eclipse (using Shift ⇧+Command ⌘+R for example), the file is getting opened in MacVim instead of the Eclipse editor. I went to

General -> Editors -> File Assocations

and added "*.jsp", but even after restarting Eclipse, the JSP files still open in MacVim instead of the Eclipse editor.

How can I force my .jsp files to open in the Eclipse editor?


Solution

  • Generally, what you've done it's the right way.

    You may have to select the right default to make it work:

    file associations

    Then you can check if the associated editors appear on file open submenu:

    submenu

    As you can see, JBoss Tools JSP Editor is highlighted to represent the default.

    If these steps aren't working in your environment, there's probably a sort of settings corruption (experienced very often).

    What you can try:

    1. run eclipse -clean -refresh
    2. create a brand new Workspace
    3. make a new and clean eclipse installation

    Make sure you have Eclipse WTP installed (or just install it):

    enter image description here

    P.S. use the update-site for your eclipse version (Mars), I'm on Neon.