Search code examples
pythonkeyboard-shortcutsspyder

Going back to previous line in Spyder


I am using the Spyder editor and I have to go back and forth from the piece of code that I am writing to the definition of the functions I am calling. I am looking for shortcuts to move given this issue. I know how to go to the function definition (using Ctrl + g), but I don't know how to go back to the piece of code that I am writing. Is there an easy way to do this?


Solution

  • (Spyder maintainer here) You can use the shortcuts Alt+Left and Alt+Right to move to the previous/next cursor position, respectively.