how to change editor behavior in intellij idea

2019-03-08 03:05发布

问题:

I have installed IntelliJIdea 14.0.2 just now. I do not know its default editor but it is opening my source files in vi option now. So, not letting me do default action like Ctrl + v, Ctrl + d which was present before and I used to like it.

So, how to change this behavior like present in sublime - editors?

回答1:

If you don't need vi keybindings, uninstall the IdeaVIM plugin.



回答2:

disable below option in menu bar.

Tools -> VimEmulator(Ctrl + Alt + V)



回答3:

If you don't want to uninstall vi, you can either turn it off, like @redredtokki states (Tools > VimEmulator), or

Change just the Ctrl-X, Ctrl-V keys in File > Settings > Other Settings:

Change the column on the right from "Vim" to "IDE".



回答4:

If you wanna use vim and also shortcuts like Ctrl+C/Ctrl+V/Ctrl+X, you may redefine the shortcuts as IDE shortcuts in:

File-->Settings-->Other Settings-->Vim Emulator