Eclipse Text Editor Behaviour under Linux - eclipse

I use Eclipse Luna 4.4.0 under Ubuntu 14.04.1 LTS. When I edit a file (especially a Java file), then the editor has a vi-like behaviour with a command and edit mode. But I want the same editor behaviour as under Windows which is like Notepad(++), without a command mode.
I couldn't find any key settings under Windows -> Preferences -> General -> Keys. There's a default scheme, a "vim's key bindings" scheme and an emacs scheme, but there seems to be no difference between the default and the vim scheme. And, additionally, I couldn't find any way to export Windows' editor preferences and to import them under Linux.
Is there any way to solve my problem? Or do we have this different behaviour due to platform-dependent implementation?

I guess, you have Vrapper or a different plug-in installed that provides these key bindings. If you don't want to have these features, try to uninstall them (select Help -> About from the menu, then click on Installation Details button on the bottom of the About dialog, where you can look for any possible culprits, and uninstall them.

Related

How to export/import NetBeans settings (like theme, editor colours etc.)?

IntelliJ IDEA (as of version 14.0.2) has an option to export/import user preferences with menu options 'File->Export Settings...' and 'File->Import Settings'. I wonder what is the simplest way to achieve a similar effect in NetBeans 8.0.2?
Note: I want to store my NetBeans IDE settings under version control on GitHub so that I can readily import them whenever I need (e.g. after OS reinstalls).
Tools | Options has an import/export.
For those who may be trying to access the Options menu on a Mac, it's available under Netbeans->Preferences (or command + ,). The export and import options are on the General tab in the lower left corner.
To be precise if not sufficently clear reading the answers:
On netbeans 12.0, and previous versions ->
Tools -> Options -> Editor
Select Import Button
Then select the version of Netbeans to import from
Select the settings to overwrite
Confirm
The IDE will restart...

Using Tab key to indent code in Eclipse Kepler under Mac

When I was working under Windows or Linux, pressing Tab key in Eclipse would indent and shif-tab would un-indent code. I work on a Mac now and pressing Tab does nothing (Eclipse Kepler).
More than that: when I press Tab key inside Eclipse editor, the next pressed key is ignored. I tested this in PyDev and PHP environments.
What might be the reason?
Solutions:
1) Try to uninstall your kepler distribution and pull another from here http://www.eclipse.org/kepler/, you must have some key binding that must had came along with your distribution.
2) Also if you go to menu Eclipse > Preferences > General > Keys you can try to understand where is your conflicting command, maybe tab is associated with more commands than just the 'Indent Line', which could cause that behavior.
Note: There is absolutely nothing wrong with Tab Key on Eclipse Kepler, over OSX (I've a Mac too and it works perfectly).
I exported a CSV with my default key bindings, just in case you want to check out an working version .
Also make sure you don't have any specific shortcut on your OSX Keyboard Configuration targeting the Tab Key, you can check this on OSX Settings > Keyboard > Shortcuts.

Changing Eclipse Exit Shortcut

I'm using eclipse on Ubuntu 12.04 and Ctrl+x closes my Eclipse. I tested Ctrl+x in other applications and it cuts text, which is what I want, so it must be an eclipse shortcut binding.
I checked my Preferences>General>Keys settings and couldn't find an exit/quit/explode eclipse command and when I search for Ctrl+x I only see 'Cut' binded to that key combo.
It has been driving me crazy so any help will be appriciated, you go to cut and omg eclipse is closing lol.
I had a similar problem. Here's how to solve it:
When you open Eclipse, go to Window -> Preferences -> General -> Keys.
Search for the 'Cut' command. The Binding option should show 'Ctrl+X'. Change the When option from 'In Dialogs and Windows' to 'Editing Text'.
I checked my Eclipse environment, I don't have this problem. Ctrl+ X is for cut.
I can suggest to go where you did, and look inside the bindings column, if there is any ctrl+x and change it.
Look also for other programs you are running, maybe they listen to shortcuts.
Cheers
I had the exact same problem on Windows 8. The CTRL+x binding closed Eclipse but in the bindings dialog the only binding for CTRL+x was for the cut action. Finally, I have found the solution in the Arch Linux Wiki. See https://wiki.archlinux.org/index.php/eclipse#Ctrl.2BX_closes_Eclipse . It's a bug in Eclipse which can be solved by editing a metadata file by hand.

NetBeans missing code completion option for C

I just installed NetBeans on my Windows machine (usually use Linux), and when I open my C/C++ projects, they build well but none of the syntax is recognized and highlighted. #include, for example, just stays black. Same goes for everything else other than basic C data types (float, int, etc.). When in Options->Editor->Code Completion, the only language I see in the drop-down menu is HTML, but there's an option to import one. Is there a way of fixing this? I tried uninstalling and reinstalling.
You have to install the c/c++ plugin in "tool"-> "plugin" -> "available plugin".
After restarting NetBeans then still in plugin in the tab "installed" you should see c/c++ and it should be active.

How do I switch on emacs keys in Eclipse?

If I go to Window -> Preferences -> General -> Keys, change the scheme to "Emacs", and click apply, nothing happens.
I'm using Eclipse 3.6.1 on Fedora 14. Is there something I'm missing or is this just broken? Is there a workaround that doesn't involve manually entering all of the shortcuts?
While I don't know about the built in Emacs keys, I do enjoy using Emacs+ for Eclipse: http://www.mulgasoft.com/emacsplus.
The keybindings mechanism in Eclipse occasionally gets confused. Briefly, you have to convince Eclipse to reset the bindings to the default before re-enabling your desired binding scheme. A description of the procedure (that works most of the time) can be found at: http://www.mulgasoft.com/emacsplus/keybinding.
Some users have found that they need to restart Eclipse more frequently than is outlined in the procedure...