Replies: 2 comments
-
The problem with providing such a feature is how it could all go horribly wrong. 😄 For instance, how do you know where the top of project is and thus the root? You can't rely on And while we can probably come up with an 80% solution, that won't stop the other 20% from opening bugs. 😅 So my question would be what algorithm would you suggest for this knowing what edge cases users might run into? |
Beta Was this translation helpful? Give feedback.
-
Moved to #16997 |
Beta Was this translation helpful? Give feedback.
-
I want to be able to right click a file and copy the import path to that file
so that I may paste it into a terminal/repl to gain access to those functions without having to type a long import path
https://marketplace.visualstudio.com/items?itemName=yardensachs.copy-python-path is an existing extension that does this, but I think it should be baked into the official plugin.
For context, a project I work on can have modules and packages nested quite deeply (10 or so levels deep). I often have to type out an extremely long import string during exploratory sessions, and would love to be able to copy a path from a file I'm looking at directly into the terminal.
Beta Was this translation helpful? Give feedback.
All reactions