问题
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 the Ctrl-X and Ctrl-V keys in File > Settings
under: Editor > Vim Emulation:
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
来源:https://stackoverflow.com/questions/28156011/how-to-change-editor-behavior-in-intellij-idea