emmet-eclipse icon indicating copy to clipboard operation
emmet-eclipse copied to clipboard

"Match Pair Outward" keyboard shortcut (Ctrl + D) conflicted to eclipse's "Delete Line"

Open tan9 opened this issue 11 years ago • 10 comments

After installing emmet, I can't use Ctrl+D to delete line in my eclipse, even when I unbind the "Match Pair Outward" command in Preferences / General / Keys.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

tan9 avatar Aug 20 '13 03:08 tan9

+1. This affects me too

iBiryukov avatar Oct 16 '13 22:10 iBiryukov

me too,and I can't find way to solve this problem

calledT avatar Nov 22 '13 08:11 calledT

The solution:

Go to Window -> Preferences -> General -> Keys There you can bind and unbind key commands, so in order to avoid conflicts with Ctrl + D, you have to unbind the default actions and then search for "Math Pair Outward" and apply the key to it inside the Aptana Editor.

You can do it to other Emmet keys wich cause conflicts.

Tested on Aptana Studio 3. Eclipse should work too.

edu791 avatar Dec 02 '13 16:12 edu791

@edwardoyarzun I might be misunderstanding your "solution" but from the original post it appears to me that the actual issue is that unbinding does not work.

Also these commands remain there even after uninstalling Emmet. I can see them in Keys list, they don't have any shortcuts listed on them, but when hitting a shortcut you have to choose one of 2 matching commands every single time. When I hit Ctrl+D a list pops in the bottom right corner of my screen where I have to choose either [Delete Line] or [Match Pair Outward].

jzaruba avatar Dec 05 '13 09:12 jzaruba

As a temporary workaround, just press ENTER after pressing Ctrl+D, it will execute the 'Delete Line' command

cnlevy avatar Dec 22 '13 21:12 cnlevy

@cnlevy :)))

jzaruba avatar Dec 22 '13 21:12 jzaruba

This happened to me as well. :+1:

The good part (at least for me :) is that going to Window -> Preferences -> General -> Keys worked.

Firstly I went to Match Pair Outward and changed its hotkey (to Ctrl+Shift+Alt+D, but I suppose any, or none at all, would work), and then went back to Delete Line and reassigned Ctrl+D to it (somehow it was not assigned anymore).

Not it works as good as before.

acdcjunior avatar Jan 15 '14 16:01 acdcjunior

@acdcjunior Thanks!The problem have been solved.

shelltea avatar Jun 04 '14 03:06 shelltea

I guess the discussion goes about these lines

https://github.com/emmetio/emmet-eclipse/blob/master/io.emmet.eclipse/plugin.xml#L137-L142

What should be short-cut for those commands?

Should it be Ctrl+P ? (P is for Pair)

paulvi avatar Jun 04 '14 06:06 paulvi

I had the same issue but I fixed it by deleting the directory .metadata in my workspace. I restarted Eclpse and all shortcuts started to work :)

uso1980 avatar Feb 16 '19 13:02 uso1980