开发者

Eclipse: How to create and load custom key bindings schemes?

开发者 https://www.devze.com 2022-12-08 11:33 出处:网络
I started using Eclipse recently along with the awesome PyDev plugin for Python development. Being used to the Visual Studio key bindings, I found that Eclipse has built-in support for a Visual Studio

I started using Eclipse recently along with the awesome PyDev plugin for Python development. Being used to the Visual Studio key bindings, I found that Eclipse has built-in support for a Visual Studio (and Emacs too) key bi开发者_C百科ndings scheme.

However, I would like to create my own custom key bindings scheme and be able to load the scheme into Eclipse. How do I do this?


As explained in the Schemes help page, you can define new Key Schemes through a custom plugin:

you can define a new type of scheme inside the org.eclipse.ui.bindings definition. The workbench markup that defines the default and emacs key configurations are shown below:

<scheme
       name="%keyConfiguration.default.name"
       description="%keyConfiguration.default.description"
       id="org.eclipse.ui.defaultAcceleratorConfiguration">
</scheme>
<scheme
       name="%keyConfiguration.emacs.name"
       parentId="org.eclipse.ui.defaultAcceleratorConfiguration"
       description="%keyConfiguration.emacs.description"
       id="org.eclipse.ui.emacsAcceleratorConfiguration">
</scheme>

As illustrated by the Wizard Help Page, you can export only the key bindings preferences.

Eclipse: How to create and load custom key bindings schemes?


(source: eclipse.org)

And you will be able to import it back through File/Import.

As for the list of shortcuts available depending on your current context:

Ctrl+Shift+L: you can check if your modifications apply.

0

精彩评论

暂无评论...
验证码 换一张
取 消