This might be a basic question, but I'm on an M1 Mac, using Visual Studio Code. Many times before I have pressed cmd-z to undo and it opens an empty cell. I cannot work out how to get back to my code and at prior times if it wasn't saved I've started again. I've turned this feature off in the settings but yet it persists. Can you please help me get back to my normal code and close this cell?
See image below.
CodePudding user response:
I'm hoping I can be some help. Jupyter Lab has two modes. There's the command mode which is used for creating/deleting cells and then there's the edit mode which is used to actually input stuff into the cell. If you deleted a cell in command mode and pressed CTRL Z, the action will be undone and the cell will reappear. You need to be in edit mode in your desired selected cell to be able to undo any action in that cell. I hope this helps and I understood your question correctly.
CodePudding user response:
This should be related to your shortcut key bindings.
You can follow the steps below to see what function is bound to your Ctrl Z shortcut.