fastai / nbdev-vscode

MIT License
41 stars 5 forks source link

Is there a way to make "Go To Definition" skip the .py and go straight to the ipynb? #23

Open Taytay opened 1 year ago

Taytay commented 1 year ago

Thanks again for this extension!

Probably the biggest issue in my workflow with nbdev (not this extension, but nbdev) is that CMD+clicking on a variable (Go to Definition in vscode), takes me to the .py file instead of taking me to the .ipynb notebook. I will often go there, make edits, and only later realize I was editing the wrong thing. It bites me multiple times a day.

Is it possible to make this extension create a new command that runs "go to definition" and then immediately runs "nbdev: navigate"?

If so, it wouldn't be perfect, since it wouldn't take me to the perfect spot in the notebook cell, but it would be closer.