how to unstick "Open With" setting per-file [message #851414] |
Sat, 21 April 2012 00:19 |
Alan Bram Messages: 3 Registered: July 2009 |
Junior Member |
|
|
While working on Java code, sometimes I like to edit source code in an external editor, like emacsclient. So, I right-click, and choose "Open With", and then select "emacsclient" from the list. (I previously set it up so that "emacsclient" appears in the list.)
However, I don't always want to edit these source files in emacsclient; often I'd like to view them in the regular Eclipse Java editor. But Eclipse seems to remember that I previously chose "emacsclient" for particular source files. Now, by default Eclipse still tries to use emacsclient. This is inconvenient in some contexts: for example, in the Open Type dialog (Cntrl-Shift-T); or if I highlight a method call and press F3 (Open Declaration). These contexts don't give me a way to right-click and select which editor I want; they just automatically take me to whatever Eclipse thinks is the target file's default editor.
When this happens, I have to manually click through the package naming hierarchy in the Package Explorer to find the desired source file name. From there I can of course do the right-click and choose the Eclipse editor, but this is tedious.
Is there a way to make Eclipse reset, or "forget" that I previously wanted to edit certain files with an external editor?
|
|
|
Re: how to unstick "Open With" setting per-file [message #869791 is a reply to message #851414] |
Fri, 04 May 2012 10:10 |
Dani Megert Messages: 3802 Registered: July 2009 |
Senior Member |
|
|
On 21.04.2012 02:19, Alan Bram wrote:
> While working on Java code, sometimes I like to edit source code in an
> external editor, like emacsclient. So, I right-click, and choose
> "Open With", and then select "emacsclient" from the list. (I
> previously set it up so that "emacsclient" appears in the list.)
>
> However, I don't always want to edit these source files in
> emacsclient; often I'd like to view them in the regular Eclipse Java
> editor. But Eclipse seems to remember that I previously chose
> "emacsclient" for particular source files. Now, by default Eclipse
> still tries to use emacsclient. This is inconvenient in some
> contexts: for example, in the Open Type dialog (Cntrl-Shift-T); or if
> I highlight a method call and press F3 (Open Declaration). These
> contexts don't give me a way to right-click and select which editor I
> want; they just automatically take me to whatever Eclipse thinks is
> the target file's default editor.
>
> When this happens, I have to manually click through the package naming
> hierarchy in the Package Explorer to find the desired source file
> name. From there I can of course do the right-click and choose the
> Eclipse editor, but this is tedious.
>
> Is there a way to make Eclipse reset, or "forget" that I previously
> wanted to edit certain files with an external editor?
No.
Dani
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.07582 seconds