PyCharm Editor - Running code till cursor
I have been trying to find the shortcut for running the code till the line where the cursor's caret is, but I was not able to find it. All I do is select everything above the line till the beginning of the code in the notebook and I execute it, but I have to search and come back to where I earlier was, which is kind of annoying and time consuming. Is there a shortcut for this? Thanks!
Please sign in to leave a comment.
There's an acton called "Run to cursor" which you can assign a shortcut to in the keymap settings. However, it doesn't work for Jupyter: https://youtrack.jetbrains.com/issue/PY-34113
It works for .py files though.
Have you tried "Navigate | Back" action? (Also configurable in settings). It should take you to the previous place in the code quickly.