I freshly installed VS and the undo or redo did not work. So I closed down VS and reopened and now it works