-
Notifications
You must be signed in to change notification settings - Fork 46.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DevTools: Show component file path #16497
Comments
@GavBaros Please be more specific in your feedback. This is not helpful. |
I agree with @GavBaros , in this new version (v4), we cannot get file locations which really slows development time, fix this asap. |
You can get your component file path by clicking in the "Log this component data to the console", icon is like a bug, and then copy the path from the Console. |
File info isn't shown in the top level UI anymore because there are a lot of important things fighting for space in that UI. You can still see it using the debug button though. Is this enough to satisfy your use case @Cretezy? Seems like it should be? |
To counter this, I don't think people use this info / look for this info often- so I'm not sure it needs to be available at a glance. I think putting less accessed info behind a click or two isn't so unreasonable. I don't think 4 clicks is right. You have to click to select an element to begin with. Then it's:
Your screenshot looks like a pretty extreme edge case. Many people run this extension docked to the bottom 1/4th or so of their browser window, where there is much less height and adding it to the bottom would require scrolling. |
Even 3 clicks is a lot. I know I used it multiple times a day, so does my co-workers. Maybe adding an option to display it at the bottom would be a good compromise? Even off my default is fine, but the ones that use it would be able to turn it on. IMO, dev tools should help developers do their jobs better/faster, and an option would fulfill that purpose without impeeding others. |
I agree with @Cretezy, the old place that this piece of information where was way more accessible and easier to reach than now. |
Please show the component file path by scrolling. It is very important for large projects. Doing it in 3 clicks is waste of time. |
I agree with @hdwivedi9 , in large projects this is such a waste of time, just put it in the old place as it was much much better. |
I don't think further comments just saying "please add this" add much value. Copy-pasting Dan's response from another issue as I think it also applies here:
|
Thanks @bvaughn |
@bvaughn This is already much better. Having a single option to make it copy the full path would be the best way though, since it's simple and all editors support opening by full path. |
This is literally that. The partial path is shown but the copy button copies the full path. That's what I was trying to say with this:
|
@bvaughn Ah sorry I misunderstood! Thank you very much! |
Do you want to request a feature or report a bug?
Feature.
What is the current behavior?
The new DevTools doesn't show the component file path as did the v3 version.
What is the expected behavior?
It would be great to show the component file path, it's a really important feature when working in a large codebase.
Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?
React DevTools v4 is affected, v3 had it.
The text was updated successfully, but these errors were encountered: