Skip to content
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

Make "Open DevTools in Web Browser" a top-level command #5000

Closed
f-person opened this issue Feb 21, 2024 · 4 comments
Closed

Make "Open DevTools in Web Browser" a top-level command #5000

f-person opened this issue Feb 21, 2024 · 4 comments
Labels
in devtools Relates to integration with Dart/Flutter DevTools is enhancement
Milestone

Comments

@f-person
Copy link

Is your feature request related to a problem? Please describe.
I only use DevTools in the web browser, and having to go through an additional menu for that becomes annoying over time :)

Describe the solution you'd like
It'd be great to have the "Open DevTools in Web Browser" command be accessible on a top-level through ⌘+⇧+P (default shortcut)

Describe alternatives you've considered

Additional context
I think it also makes sense to have it since we have all the other ones as top-level AFAIK

@DanTup
Copy link
Member

DanTup commented Feb 21, 2024

Have you tried setting the dart.devToolsLocation setting?

"dart.devToolsLocation": {
	"default": "external"
},

This will cause DevTools to always open externally. That way you can just use the button on the toolbar for Inspector, or any of the existing DevTools commands that take you directly to the page you want.

@DanTup DanTup added the awaiting info Requires more information from the customer to progress label Feb 21, 2024
@f-person
Copy link
Author

Oh, thanks! This is a great workaround; I still occasionally use the inspector in Code itself, though, so it'd be nice to eventually have this :)

@DanTup
Copy link
Member

DanTup commented Feb 21, 2024

@f-person I don't know if it helps, but you can set a different option for each section:

"dart.devToolsLocation": {
	"inspector": "beside",
	"default": "external"
}

@DanTup DanTup added this to the v3.84.0 milestone Feb 21, 2024
@DanTup DanTup added in devtools Relates to integration with Dart/Flutter DevTools and removed awaiting info Requires more information from the customer to progress labels Feb 21, 2024
@DanTup DanTup closed this as completed in 70447c4 Feb 22, 2024
@f-person
Copy link
Author

Yeah, I noticed this and did something similar already, but didn't know I could just specify the default; that's great, thanks! I do think it'd still be nice to add it, though :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in devtools Relates to integration with Dart/Flutter DevTools is enhancement
Projects
None yet
Development

No branches or pull requests

2 participants