views:

123

answers:

1

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 + upArrow/ ctrl + alt + shift + downArrow 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 keyboard (without using the mouse)?

I am using Intellij IDEA 7.0.3.

A: 

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.

CrazyCoder
I have tried Rollback, but it only seems to roll back **all** the changes in the file. What I am looking for is to be able to selectively revert individual changes as I get to them. Is this possible?
Henrik Warne
You are right, it doesn't work as expected. I've submitted the new YouTrack issue.
CrazyCoder

related questions