Visual Studio 的 Eclipse 键绑定
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/200499/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Visual Studio's keybindings for Eclipse
提问by Michal Sznajder
Does anybody have a keybinding scheme similar to VS 2005 available for Eclipse?
是否有人有类似于 VS 2005 可用于 Eclipse 的键绑定方案?
How to import it into preferences of Eclipse (I see only export button).
如何将其导入 Eclipse 的首选项(我只看到导出按钮)。
采纳答案by Chris
How to Install Visual Studio Key Bindings in Eclipse (Helios onwards)
如何在 Eclipse 中安装 Visual Studio 键绑定(Helios 起)
For anyone finding this post, if you need step by step instructions and you're using Eclipse Indigo PDT , the following should help you:
对于找到这篇文章的任何人,如果您需要分步说明并且您正在使用 Eclipse Indigo PDT,以下内容应该对您有所帮助:
(Note: you will be prompted to restart Eclipse after installing)
(注:安装后会提示重启Eclipse)
- Start Eclipse
- Click Help-> Install New Software
- In the Work withbox select or type your version of Eclipse, e.g.:
- for Neon (4.6)
- for Mars (4.5)
- for Luna (4.4)
- for Kepler (4.3)
- for Juno (4.2)
- for Indigo (3.7)
- for Helios (3.6)
- Make sure the 'type filter text' box is blank.
- Wait for a list of names and versions to appear
- Scroll down to find Programming Languages, and expand it
- Locate C/C++ Development Toolsand check the box
- Click Nextand follow the remaining instructions on screen.
- 启动日食
- 点击帮助->安装新软件
- 在Work with框中选择或键入您的 Eclipse 版本,例如:
- 确保“类型过滤器文本”框为空。
- 等待名称和版本列表出现
- 向下滚动以找到Programming Languages并展开它
- 找到C/C++ 开发工具并选中复选框
- 单击下一步并按照屏幕上的其余说明进行操作。
After finishing the install and restarting Eclipse...
完成安装并重新启动Eclipse后...
- Click Window -> Preferences
- Expand General
- Click Keys
- Change the Scheme drop down to Microsoft Visual Studio
- Click OK
- 单击窗口 -> 首选项
- 展开一般
- 单击键
- 将 Scheme 下拉菜单更改为 Microsoft Visual Studio
- 单击确定
To confirm the update, try pressing CTRL+ SHIFT+ Fand the 'Search' dialogue box should appear.
要确认更新,请尝试按CTRL+ SHIFT+,F然后会出现“搜索”对话框。
回答by Jani Kajala
I think the latest Eclipse ships with Visual Studio bindings but at least the Eclipse PDT doesn't (which I just installed). And I would prefer to not have lots of extra plug-ins in Eclipse to keep it more "slim", so I didn't add the C++ plug-in. (maybe it doesn't affect performance but I really need only the keys...)
我认为最新的 Eclipse 附带 Visual Studio 绑定,但至少 Eclipse PDT 没有(我刚刚安装)。而且我宁愿在 Eclipse 中不要有很多额外的插件以使其更“苗条”,所以我没有添加 C++ 插件。(也许它不会影响性能,但我真的只需要钥匙......)
So anyway, I added the keys which I needed. As previous posters noted, when you "Export" in the key customization there is no way to import them, so the separate File->Export/Import functionality is the way to go.
所以无论如何,我添加了我需要的键。正如之前的海报所指出的,当您在关键自定义中“导出”时,无法导入它们,因此单独的文件->导出/导入功能是可行的方法。
So, as summary:
所以,总结如下:
Try add to Eclipse C++ plugin and see if it ships with key bindings that work for you
Use mine key bindings, key list and download hereinstall: unzip, use File->Import->General... to get it to Eclipse
尝试添加到 Eclipse C++ 插件,看看它是否附带适合您的键绑定
使用我的键绑定、键列表并在此处下载 安装:解压缩,使用 File->Import->General... 将其导入 Eclipse
It's far from complete of course (it's only keys which I missed to get started...), but better than nothing anyway.
当然,它还远未完成(这只是我开始时错过的钥匙......),但总比没有好。
Update (2009-10-16): Added Ctrl+ G(go-to-line) to the bindings.
更新 (2009-10-16):在绑定中添加了Ctrl+ G(go-to-line)。
回答by Luke Quinane
To get the Visual Studio key bindings in Eclipse you need to install the C++ development plugins - see this.
要在 Eclipse 中获取 Visual Studio 键绑定,您需要安装 C++ 开发插件 - 请参阅此。
I downloaded the latest Java development version of Eclipse (version below), when to Help -> Software Updates -> Available Software -> Ganymede and ticked the C++ box. After a restart the Visual Studio key binding appeared in the list.
我下载了 Eclipse 的最新 Java 开发版本(以下版本),何时帮助 -> 软件更新 -> 可用软件 -> Ganymede 并勾选 C++ 框。重新启动后,Visual Studio 键绑定出现在列表中。
Eclipse Platform
Version: 3.4.1
Build id: M20080911-1700
回答by PhillC
I don't have a VS2005 keybinding scheme as I personally prefer a Brief-style scheme.
我没有 VS2005 键绑定方案,因为我个人更喜欢 Brief 风格的方案。
However, to import "it", as far as I know (at least on Eclipse 3.4 Ganymede) use File -> Import -> General -> Preferences where "it" is a .prf file which has been saved out using File -> Export -> General -> Preferences.
但是,要导入“它”,据我所知(至少在 Eclipse 3.4 Ganymede 上)使用 File -> Import -> General -> Preferences 其中“it”是一个 .prf 文件,已使用 File ->导出 -> 常规 -> 首选项。
回答by Markus Lausberg
This may help you making-eclipse-behave-like-visual-studio
回答by JesperE
Eclipse Ganymede has a built-in keybinding scheme for Visual Studio. Have you tried that?
Eclipse Ganymede 具有用于 Visual Studio 的内置键绑定方案。你试过吗?