I always click the first result, which is often a dummy. Has anyone found a pycharm workaround?
Some way to specify paths that search should ignore?
Great question, Sam!
right click on dummy_objects.py and click âmark as plain textâ
h/t phpstorm docs (works in pycharm).
When working in pycharm with transformers as an External Library, I couldnât get this to work (i.e. when I want to read the source code for a specific method from an external library managed by pip or conda).
But the following fixed it:
(pycharm) preferences > file types > ignore files and folders > add â;dummy_*.py;â
Has anyone gotten this working in vscode? Maybe @julien-c ?
I havenât hit this issue but maybe just b/c my workflow does not lead me into it. Not sure đ¤ˇ
Lol, I would love for VSCode to start trying to show me the origin of classes/functions.
Cmd+Click or Find all references work reasonably well for me, isnât that the case for you?
Iâve mostly tried Go To Definition, which works erratically so stopped digging too much. Will try again when Iâm at my machine with Find all references (in the remote extension, any of those commands takes a long time for no result).
Also if I remember correctly there are two distinct backends for the python extension in vscode. One is experimental and doesnât work well, while the mature one is working ok (but has native dependencies or is more ancient).
For me, the setting is:
Settings > Editor > File Types > Ignore Files and Folders > File name patterns [click â+â] > dummy_*.py