CTRL + Z limited number of undos... why ?
Answered
Hi,
I am struggling to figure out how to increase my clipboard history...
The "maximum number of contents to keep in clipboard" is set to 9999 and about a week ago I had it on 999 why I increased it further.. but this doesn't seem to be working...
This is very useful... and I believe I used to have a very large undo buffer once...
Does this have to do with the keymap settings perhaps ?
Cheers, Hamidam
Please sign in to leave a comment.
The "Maximum number of contents to keep in clipboard" setting has nothing to do with the Undo feature. That sets how many copied or cut items are retained in the clipboard history. You can view the items in the clipboard history, for pasting back via the "Paste from History" action (Ctrl+Shift+V or Edit | Paste From History...). It's useful if you have a handful of code snippets you want to copy/cut & paste in one or more places. Or if you want to copy/cut some code and then refer back to it latter. So an extreme value for that is likely inappropriate.
As changing the undo stack size, I am not sure if that is configurable.
Really ?
If that's true than I must say that this should be added. I have lots of memory and hard disk, I can afford that extra cost if I want to.
But I believe that I have undone very far back in previous Intellij versions ( 9.02 now ).
Anyone that can confirm the lack of a feature like this ? I think it's extremely useful. If I decide to refactor or add something that I later deem as uneccessary or not as good as I thought I would like to roll back by undoing. Local history in all honor but it's not as easy to detect where that action started and I might risk reverting to far. The scroll to top in local history is annoying as well when switching to another date.
Cheers, Hamidam
Is there any reason you aren't using the local history functionality, which is far more powerful? Edit: sorry I didn't see your last post on my phone for some reason. I still believe your use case is better suited to local history than undo, however. It's very easy to see what you're reverting and labels allow easy marking of large changes
I know this is an old issue but it's relevant to me right now so I will answer this question. CTRL-Z-ing back through your edits is a completely different experience from using local history and is more appropriate than local history in normal editing.
Local history is a great but one thing is can't do well is present to your steady gaze only the code which just changed as quick as you can type the next CTRL-Z. In Local History I have to fire it up then go searching through all the entries by manually clicking on them then go scrolling through the resultant view so I can try to pick out particular diffs in blue (on my machine) from all the other diffs and and lines of code which present themselves in the Local History view. And that's if the point to which I would like to undo is even there. I don't think it makes an entry each time I type another symbol in a line of code, so mostly, it's not there to be reversed to anyways.
But anyways it's entirely the wrong user experience. CTRL-Z (undo) let's me watch a film-strip go frame by frame in reverse without having to "find" anything. That's exactly what I want when I'm backing out of the last ten or twenty minute's work. I know where I want to reverse to by replaying what I did backwards. It's orienting ; I know where to stop because I recognize the backwards unfolding of my thinking process.
You can increase the capacity of the "undo" action in the registry. See https://stackoverflow.com/a/60142190/8203759