开发者

Is there a keyboard shortcut to revert individual changes in Intellij IDEA?

开发者 https://www.devze.com 2022-12-14 01:47 出处:网络
When a file has changes compared to the version checked-out from the version control system (subversion and cvs in my case), I use Ctrl + Alt + Shift + ↑ / Ctrl + Alt + Shift + ↓ to jump bet

When a file has changes compared to the version checked-out from the version control system (subversion and cvs in my case), I use Ctrl + Alt + Shift + / Ctrl + Alt + Shift + to jump between those changes. Sometimes I want to revert some of these changes (but not all the changes in the file). I can do that by using the mouse and clicking the little revert-icon with the green arrow, but is there a way to do it from the key开发者_开发百科board (without using the mouse)?

I am using IntelliJ IDEA 7.0.3.


You can set in Setting | Keymap and select Version Control Systems in the keymap list and set the shortcut,but revert action in my subversion settings was set default to Ctrl+Alt+Z


You need to assign a hotkey to the Rollback action in Settings | Keymap, it's not assigned by default.

UPDATE: it appears that the Rollback action actually calls Revert for the whole file. I've submitted IDEA-26912 for this, please Watch/Vote.


Rollback no longer reverts the whole file and can be assigned a keyboard shortcut. See this comment. Verified in IntelliJ IDEA 12.1.6 Ultimate.

0

精彩评论

暂无评论...
验证码 换一张
取 消