How to add VSCode key-map to Eclipse? - eclipse

Does anybody know a quick and simple way to get the VSCode key-map in Eclipse?
I primarily work within VSCode, and soon will also be working within STS (Spring Tool Suite) (which is just Eclipse with the STS plugin).
I don't want to have to have to mentally switch between both key-maps constantly.
I was surprised to find that Eclipse doesn't have many options for alternative key-maps.
Things tried
Eclipse Marketplace
The Eclipse market place seems to only have one key-map available (IntelliJ) - as seen here:
https://marketplace.eclipse.org/search/site/keymap
Visual Studio key-map
I installed the C++ dev tools within Eclipse and enabled the Visual Studio key-map, following the advice here:
https://stackoverflow.com/a/10075350
This was closer to VSCode's key-map, but still not perfect.
Current situation
I'm using the Visual Studio key-map, and updating each key that I find is out of sync with the VSCode keymap.
It's not ideal but it's close.
Ideal scenario
Ideally there would be an extension for this in the Eclipse marketplace, similar to how VSCode has an Eclipse key-map extension:
https://marketplace.visualstudio.com/items?itemName=alphabotsec.vscode-eclipse-keybindings

Related

Set common shortcut keys for Visual Studio, VS code and Eclipse

I have been using Visual Studio since last 5-7 years. Now I started using VS Code & Eclipse as well. I am very used to Visual Studio shortcuts.
Can I have same shortcut keys in Eclipse and VSCode as in Visual Studio. I am hopeful that both Eclipse and VS Code should provide setting up own shortcut keys for different operations. It would be difficult to set individual keys for Eclipse and VSCode.
Is there any plugin/file/setting by which I can set easily set most of the shortcuts keys in Eclipse/VS Code as in Visual Studio?
I don't know about eclipse, but in VS Code there is an extension called Visual Studio Keymap.
i do not think eclipse marketplace (https://marketplace.eclipse.org) has any plugin for keymap of visual studio.
vscode though has a keymap plugin for eclipse, https://marketplace.visualstudio.com/items?itemName=alphabotsec.vscode-eclipse-keybindings.
Hope this helps.
You can add the Visual Studio key-map to Eclipse by installing the C++ devs tools from within Eclipse. Follow this post to set it up:
https://stackoverflow.com/a/10075350/2052295
For VSCode simply install the Visual Studio key-map extension:
https://marketplace.visualstudio.com/items?itemName=ms-vscode.vs-keybindings

Aptana Studio 3.4.0 Cmd-F only works once

I routinely download the latest 'Eclipse IDE for Java EE Developers' and add Aptana Studio to it. I recently did this with Juno 4.2.2 and Aptana Studio 3.4.0. Now, I find that in the html or css editors, the cmd-f key still brings up the find/replace bar once. But when I ESCape out of that find bar, the cmd-f command no longer works until I switch to another editor window and then return to the first one. Then, cmd-f works, but again only one more time. The 'Edit-->Find/Replace menu item works consistently', so I think it has something to do with key bindings.
I also tried downloading the standalone Aptana Studio 3.4.0 and it doesn't have this issue.
Never had this problem before. Any ideas?
Me too. Its super annoying since I use Aptana all day.
Workaround: You can work around it by disabling the Aptana Find Bar in Preferences and restart Eclipse (this means you have to use the default Eclipse search dialog). Just move it out of the way while you're searching. If you disable it and go back to the old Eclipse search, you also get the ability to use the keyboard shortcuts for the items under the "Commands" menu.
Here's an aptana ticket for this bug: https://jira.appcelerator.org/browse/APSTUD-7850

JBoss Tools - Disabling Visual Editor

I just added JBoss tools and I like a lot of what I get from it. However, I noticed that my .xhtml files are loading a /lot/ slower (on the order of several seconds) than before I installed JBoss tools. I'm willing to accept some slowdown (there's always overhead from using tooling sitting ontop of Eclipse) but this is a pretty long wait. I suspect it has to do with the visual editor that JBoss has added for .xhtml. I am using windows 64 bit and I can't use this editor. I've also tried following the advice at this link
http://docs.jboss.org/tools/whatsnew/vpe/vpe-news-3.3.0.M2.html
and adding -Dorg.jboss.tools.vpe.loadxulrunner=false to the eclipse.ini but I didn't notice any speedups. I also uninstalled the plugin for the JBoss visual editor and didn't see any results. After uninstalling the plugin the visual/source, source, and preview tabs are still at the bottom of the .xhtml editor, so maybe I uninstalled the wrong one?
I'm using Eclipse for Java EE Juno service release 1 Build id: 20120920-0800. I have the CDI, dynamic web module, Java, javascript, JSF 2.1, JAX-RS 1.1 JBoss Maven Integration 1.0 and JPA 2.0 facets installed on this project.
It is hard to say what you just uninstalled.
If you want just uninstall visual editor you can do such thing:
Just install onece again Eclipse and when you install JBoss Tools just doesn't select visual editor
Try to unistall visual editor. I think (but I never tested it) you should remove from plugins and features directoris wich starts from org.jboss.tools.vpe
I don't know if there can be some problems with dependencies and so on - you should make backup of Eclipse directory before making any changes.
Maybe it will be sufficient just open the files with other editor:
You can just open single file using other editor, just click in Package explorer view on the file with right click and choose Open with... menu - then you can open the file with for example HTML editor:
You can change the default editor for all files by open Window->Preferences menu and find Find associations position. There should be *.xhtml extensions - choose it and change the default editor.

Using the Eclipse Marketplace on Aptana Studio 3

I'm currently trying out Aptana Studio 3 for PHP development (I'm pretty new to all these), and I've stumbled upon a problem. I've noticed Eclipse has a Marketplace that hosts a wide variety of plugins, and I'd like to install one that helps me for version control.
However, I can't find the Eclipse Marketplace dialog under Aptana. Is there anybody out there who's done this before (installing Eclipse Marketplace stuff in Aptana)?
Also, this is a little out-of-topic but I'd like to use Java.net as the place where I'll be storing my repository. To my knowledge, NetBeans has a built-in support for Java.net; is there anything similar for Eclipse/Aptana Studio?
EDIT: If it helps, I installed Aptana Studio as a standalone version, and not as a plugin on Eclipse.
Try Help / Install New Software, and click on the Available Software Sites link. You'll probably have the eclipse Helios release directory in the list, just check it to activate it. A lot of third-party packages have their own release sites, you can add them in the same dialog.

eclipse / aptana - text compare show code syntax highliging

I am using Aptana 3 which is basically a modified version of eclipse, so i think this question is applicable to both
Before I commit code in I like to review my changes via the text compare. It allows me to double check things I have changed.
However although text has been highlighted for changes made it does not keep the php syntax highlights. Is there anyway I can keep the PHP or whatever syntax highlighting when viewing differences?
See screenshot.
This is something that a plugin author must implement, and, it seems that it's still not implemented for Aptana's PHP editor, so, the proper thing to have that would be reporting this as a bug to be fixed in a future Aptana Studio 3 version.
This is a feature of the Eclipse editor. Perhaps you can try opening the file in another editor. Right click on the file and go to open with and choose different PHP Editor.
I am not a PHP programmer but perhaps you can check these links to see if you can find and alternate plugin with the features you want.
http://eclipse.org/proposals/php-ide/
http://www.phpeclipse.com/
First of all, Aptana is not "a modified version of Eclipse". Aptana is based on the Eclipse Platform. I am using the Aptana Studio 3 plugin for Eclipse (3.7.1; because of PyDev and features like "Local Filesystem"). ISTM that this is a problem with the Aptana PHP Editor, which the Eclipse PDT editor takes preference over in Eclipse (that might be due to the fact that I had installed the PDT plugin first).
You can try to work around this if you install PDT in Aptana Studio 3 (if necessary and possible), and define the PDT editor as default for PHP files (in Eclipse, and perhaps Aptana as well, it is under Window → Preferences → General → Editors → File Associations). You can also report this as an Aptana bug. Or use Eclipse with the Aptana Studio 3 plugin in the first place; IMHO, most Aptana editors, including the Aptana PHP editor, are not much of an improvement over the "built-in" Eclipse editors.
The issue has been repotorted on aptana bug tracker (by me) and apparently it is going to be fixed with 3.1
the bug tracking number is APSTUD-3922 for anyone who is interested